From b6c0428e8ced79ace1ec8f3822a3583bc546b4fa Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 14 Jan 2015 23:31:35 -0800 Subject: [PATCH] dsp/cpu: add include for _xgetbv() w/MSVS explicitly add immintrin.h instead of transitively picking it up via windows.h presumably. makes the code easier to move around. Change-Id: If70d5143ac94fc331da763ce034358858e460e06 --- src/dsp/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dsp/cpu.c b/src/dsp/cpu.c index 22191426..917c03b1 100644 --- a/src/dsp/cpu.c +++ b/src/dsp/cpu.c @@ -56,6 +56,7 @@ static WEBP_INLINE uint64_t xgetbv(void) { return ((uint64_t)edx << 32) | eax; } #elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 // >= VS2010 SP1 +#include #define xgetbv() _xgetbv(0) #elif defined(_MSC_VER) && defined(_M_IX86) static WEBP_INLINE uint64_t xgetbv(void) {