diff --git a/src/dsp/cpu.c b/src/dsp/cpu.c index 731c5936..7673d0fa 100644 --- a/src/dsp/cpu.c +++ b/src/dsp/cpu.c @@ -55,7 +55,8 @@ static WEBP_INLINE uint64_t xgetbv(void) { : "=a"(eax), "=d"(edx) : "c" (ecx)); return ((uint64_t)edx << 32) | eax; } -#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 // >= VS2010 SP1 +#elif (defined(_M_X64) || defined(_M_IX86)) && \ + defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 // >= VS2010 SP1 #include #define xgetbv() _xgetbv(0) #elif defined(_MSC_VER) && defined(_M_IX86)