Improved GCC test by adding "__GNUC__ >= 5"

This commit is contained in:
Jeffrey Walton 2015-07-27 01:32:10 -04:00
parent f8fc7562f1
commit 66ff5e14f1

View File

@ -508,7 +508,7 @@ NAMESPACE_END
# endif
#elif (__INTEL_COMPILER >= 1110)
# define CRYPTOPP_CXX11_RVALUES 1
#elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) && !defined(__INTEL_COMPILER || __clang__)
#elif (__GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) && !defined(__INTEL_COMPILER || __clang__)
# define CRYPTOPP_CXX11_RVALUES 1
#endif // R-value compilers
@ -521,7 +521,7 @@ NAMESPACE_END
# endif
#elif (__INTEL_COMPILER >= 1400)
# define CRYPTOPP_CXX11_RVALUES 1
#elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) && !defined(__INTEL_COMPILER || __clang__)
#elif (__GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && !defined(__INTEL_COMPILER || __clang__)
# define CRYPTOPP_CXX11_NOEXCEPT 1
# error
#endif // noexcept compilers