summaryrefslogtreecommitdiff
path: root/lsh512_sse.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-04-26 16:18:00 -0400
committerJeffrey Walton <noloader@gmail.com>2021-04-26 16:18:00 -0400
commite54f606192d2908ee6f0b5cb6bfbc3c9ea171544 (patch)
tree2068a3e559530d2ce14179d119b2e18b6d067e1e /lsh512_sse.cpp
parentc84d5b511255e900fd90979d465d306162a6fed7 (diff)
downloadcryptopp-git-e54f606192d2908ee6f0b5cb6bfbc3c9ea171544.tar.gz
Fix compile on CentOS 5
Diffstat (limited to 'lsh512_sse.cpp')
-rw-r--r--lsh512_sse.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lsh512_sse.cpp b/lsh512_sse.cpp
index d9fa602c..a0b8a129 100644
--- a/lsh512_sse.cpp
+++ b/lsh512_sse.cpp
@@ -26,7 +26,8 @@
# include <ammintrin.h>
#endif
-#if defined(__GNUC__) && defined(__amd64__)
+// GCC at 4.5. Clang is unknown. Also see https://stackoverflow.com/a/42493893.
+#if defined (__has_include) && (__has_include(<x86intrin.h>))
# include <x86intrin.h>
#endif