Fix compiler include detection under LLVM and Apple Clang (Issue 183)
parent
6b1a9d5ca8
commit
9937f4e8ba
|
|
@ -135,6 +135,11 @@
|
||||||
# if defined(__GNUC__) && (CRYPTOPP_GCC_VERSION >= 40600)
|
# if defined(__GNUC__) && (CRYPTOPP_GCC_VERSION >= 40600)
|
||||||
# include <x86intrin.h> // rdseed for some compilers, like GCC
|
# include <x86intrin.h> // rdseed for some compilers, like GCC
|
||||||
# endif
|
# 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
|
#endif
|
||||||
|
|
||||||
#if MASM_RDRAND_ASM_AVAILABLE
|
#if MASM_RDRAND_ASM_AVAILABLE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue