summaryrefslogtreecommitdiff
path: root/src/crypto/fipsmodule/bn/asm/x86_64-gcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/fipsmodule/bn/asm/x86_64-gcc.c')
-rw-r--r--src/crypto/fipsmodule/bn/asm/x86_64-gcc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/crypto/fipsmodule/bn/asm/x86_64-gcc.c b/src/crypto/fipsmodule/bn/asm/x86_64-gcc.c
index 49351c1a..30fff217 100644
--- a/src/crypto/fipsmodule/bn/asm/x86_64-gcc.c
+++ b/src/crypto/fipsmodule/bn/asm/x86_64-gcc.c
@@ -52,8 +52,9 @@
#include <openssl/bn.h>
-// TODO(davidben): Get this file working on Windows x64.
-#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && defined(__GNUC__)
+// TODO(davidben): Get this file working on MSVC x64.
+#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_X86_64) && \
+ (defined(__GNUC__) || defined(__clang__))
#include "../internal.h"
@@ -537,4 +538,4 @@ void bn_sqr_comba4(BN_ULONG r[8], const BN_ULONG a[4]) {
#undef mul_add_c2
#undef sqr_add_c2
-#endif // !NO_ASM && X86_64 && __GNUC__
+#endif // !NO_ASM && X86_64 && (__GNUC__ || __clang__)