summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-05-13 14:46:08 -0700
committerKenny Root <kroot@google.com>2015-05-13 21:52:05 +0000
commit9eb412c41ab99313c5909fba90801c3bff404a10 (patch)
tree1bae784d24807314c5ee7fde703bd311a1b10343
parent9385cb180789855cbce47d20173d90999724e428 (diff)
downloadexternal_boringssl-9eb412c41ab99313c5909fba90801c3bff404a10.zip
external_boringssl-9eb412c41ab99313c5909fba90801c3bff404a10.tar.gz
external_boringssl-9eb412c41ab99313c5909fba90801c3bff404a10.tar.bz2
external/boringssl: update #define guards for x86_64-gcc.c.
OS X builds with NO_ASM and was getting both generic.c and x86_64-gcc.c. This change updates the latter so that it's excluded in NO_ASM builds. This is a reland of 53b609c9, which got lost in the last BoringSSL sync because I forgot to send it upstream. Change-Id: I82462e5cd1d24fa96176c89d77cafc1f7ed0a0fd
-rw-r--r--src/crypto/bn/asm/x86_64-gcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/bn/asm/x86_64-gcc.c b/src/crypto/bn/asm/x86_64-gcc.c
index ac63934..0496b95 100644
--- a/src/crypto/bn/asm/x86_64-gcc.c
+++ b/src/crypto/bn/asm/x86_64-gcc.c
@@ -1,6 +1,6 @@
#include <openssl/bn.h>
-#if defined(OPENSSL_X86_64) && !defined(OPENSSL_WINDOWS)
+#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && !defined(OPENSSL_WINDOWS)
#include "../internal.h"
@@ -596,4 +596,4 @@ void bn_sqr_comba4(BN_ULONG *r, const BN_ULONG *a) {
r[7] = c2;
}
-#endif /* defined(OPENSSL_X86_64) && !defined(OPENSSL_WINDOWS) */
+#endif /* !NO_ASM && X86_64 && !WINDOWS */