diff --git a/rdrand.cpp b/rdrand.cpp index 1fd6f94c..fbfb7eec 100644 --- a/rdrand.cpp +++ b/rdrand.cpp @@ -132,10 +132,8 @@ #if (ALL_RDRAND_INTRIN_AVAILABLE || ALL_RDSEED_INTRIN_AVAILABLE) # include // rdrand, MSC, ICC, and GCC -# if defined(__has_include) -# if __has_include() -# include // rdseed for some compilers, like GCC -# endif +# if defined(__GNUC__) && (CRYPTOPP_GCC_VERSION >= 40600) +# include // rdseed for some compilers, like GCC # endif #endif