summaryrefslogtreecommitdiff
path: root/lsh256_avx.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 /lsh256_avx.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 'lsh256_avx.cpp')
-rw-r--r--lsh256_avx.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lsh256_avx.cpp b/lsh256_avx.cpp
index 88df6a17..f4ac6b57 100644
--- a/lsh256_avx.cpp
+++ b/lsh256_avx.cpp
@@ -25,8 +25,7 @@ extern const char LSH256_AVX_FNAME[] = __FILE__;
# include <immintrin.h>
#endif
-// GCC at 4.5. Clang is unknown. Also see https://stackoverflow.com/a/42493893.
-#if (CRYPTOPP_GCC_VERSION >= 40500)
+#if defined(CRYPTOPP_GCC_COMPATIBLE)
# include <x86intrin.h>
#endif