Fix compiler include detection under LLVM and Apple Clang (Issue 183)

pull/186/head
Jeffrey Walton 2016-06-12 08:59:15 -04:00
parent 6b1a9d5ca8
commit 9937f4e8ba
1 changed files with 5 additions and 0 deletions

View File

@ -135,6 +135,11 @@
# if defined(__GNUC__) && (CRYPTOPP_GCC_VERSION >= 40600)
# include <x86intrin.h> // rdseed for some compilers, like GCC
# endif
# if defined(__has_include)
# if __has_include(<x86intrin.h>)
# include <x86intrin.h> // rdseed for Clang (immintrin.h); rdseed for Clang (rdseedintrin.h)
# endif
# endif
#endif
#if MASM_RDRAND_ASM_AVAILABLE