Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2014-10-31 22:48:19 +0300
committerAdam Langley <agl@google.com>2014-11-01 01:00:45 +0300
commitf44aa68a265bb27d9c8c23585f8a2723a27124c5 (patch)
tree8b927b9008793ca4c21f73532297d515abb2207e /crypto/bn/generic.c
parente92fc1812d90a5867c6325f047e71a5e2c6f8600 (diff)
Fix standalone Win64 build.
generic.c still needs to include generic implementations in Win64. Those are currently done with inline assembly and won't work on MSVC. Change-Id: Ifeb5470872d8c97b2ccffeae6f3ccb5661051de3 Reviewed-on: https://boringssl-review.googlesource.com/2102 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/bn/generic.c')
-rw-r--r--crypto/bn/generic.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/bn/generic.c b/crypto/bn/generic.c
index c60cfd97..52aad8e0 100644
--- a/crypto/bn/generic.c
+++ b/crypto/bn/generic.c
@@ -61,8 +61,13 @@
#include "internal.h"
+/* Generic implementations of most operations are needed for:
+ * - Configurations without inline assembly.
+ * - Architectures other than x86 or x86_64.
+ * - Windows x84_64; x86_64-gcc.c does not build on MSVC. */
#if defined(OPENSSL_NO_ASM) || \
- (!defined(OPENSSL_X86_64) && !defined(OPENSSL_X86))
+ (!defined(OPENSSL_X86_64) && !defined(OPENSSL_X86)) || \
+ (defined(OPENSSL_X86_64) && defined(OPENSSL_WINDOWS))
#if defined(OPENSSL_WINDOWS)
#define alloca _alloca