diff options
author | Jeffrey Walton <noloader@gmail.com> | 2023-04-15 18:21:03 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2023-04-15 18:21:03 -0400 |
commit | ddb8f36e8894a3bce7daeca0815fb0137de73388 (patch) | |
tree | 2db9cb4c53c63323da064f21461b63dbcd982013 /chacha_simd.cpp | |
parent | f5f63850f9a5521e45de3cc45be61309a2e71ab2 (diff) | |
download | cryptopp-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 'chacha_simd.cpp')
-rw-r--r-- | chacha_simd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chacha_simd.cpp b/chacha_simd.cpp index 4e5a3cc3..556070e5 100644 --- a/chacha_simd.cpp +++ b/chacha_simd.cpp @@ -45,11 +45,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
#if (CRYPTOPP_ARM_NEON_HEADER)
# include <arm_neon.h>
|