From e46a247c877c2a216be1de872f34b65ee615d10d Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 21 May 2014 22:59:47 -0700 Subject: [PATCH] cpu: fix check for __cpuidex availability __cpuidex was added in VS2008 /SP1/ Change-Id: Ie49b00b0246bd6537c0ed583412f17d6fd135baa --- src/dsp/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsp/cpu.c b/src/dsp/cpu.c index dd800a3b..b4f53740 100644 --- a/src/dsp/cpu.c +++ b/src/dsp/cpu.c @@ -38,7 +38,7 @@ static WEBP_INLINE void GetCPUInfo(int cpu_info[4], int info_type) { : "=a"(cpu_info[0]), "=b"(cpu_info[1]), "=c"(cpu_info[2]), "=d"(cpu_info[3]) : "a"(info_type)); } -#elif defined(_MSC_VER) && _MSC_VER >= 1500 // >= VS2008 +#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 150030729 // >= VS2008 SP1 #define GetCPUInfo(info, type) __cpuidex(info, type, 0) // set ecx=0 #elif defined(WEBP_MSC_SSE2) #define GetCPUInfo __cpuid