From c9703ab5ea9debf8d501135f62e8eae92b32968f Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 28 Apr 2019 17:27:09 -0400 Subject: [PATCH] Prepare for Crypto++ 8.2 release Fix VS2010 compile on WIndows Vista --- cpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu.cpp b/cpu.cpp index 5a160529..4424af0b 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -341,8 +341,8 @@ void DetectX86Features() word64 xcr0 = a | static_cast(d) << 32; g_hasAVX = (xcr0 & YMM_FLAG) == YMM_FLAG; -// Visual Studio 2008 and below lack xgetbv -#elif defined(_MSC_VER) && _MSC_VER <= 1500 && defined(_M_IX86) +// Visual Studio 2010 and below lack xgetbv +#elif defined(_MSC_VER) && _MSC_VER <= 1600 && defined(_M_IX86) word32 a=0, d=0; __asm { push eax