summaryrefslogtreecommitdiff
path: root/keccak_simd.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2023-04-15 18:21:03 -0400
committerJeffrey Walton <noloader@gmail.com>2023-04-15 18:21:03 -0400
commitddb8f36e8894a3bce7daeca0815fb0137de73388 (patch)
tree2db9cb4c53c63323da064f21461b63dbcd982013 /keccak_simd.cpp
parentf5f63850f9a5521e45de3cc45be61309a2e71ab2 (diff)
downloadcryptopp-git-ddb8f36e8894a3bce7daeca0815fb0137de73388.tar.gz
Fix use of <x86intrin.h> for MSVC (GH #1198)
It seems Microsoft now defines GCC defines, like __BMI__
Diffstat (limited to 'keccak_simd.cpp')
-rw-r--r--keccak_simd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/keccak_simd.cpp b/keccak_simd.cpp
index 5a534a99..b2cf62ee 100644
--- a/keccak_simd.cpp
+++ b/keccak_simd.cpp
@@ -27,11 +27,11 @@
#endif
#if defined(__XOP__)
-# include <ammintrin.h>
-# if defined(__GNUC__)
+# if defined(CRYPTOPP_GCC_COMPATIBLE)
# include <x86intrin.h>
# endif
-#endif
+# include <ammintrin.h>
+#endif // XOP
// Squash MS LNK4221 and libtool warnings
extern const char KECCAK_SIMD_FNAME[] = __FILE__;