From 6032239e2faeaf132d809f00cf6da4c285a07000 Mon Sep 17 00:00:00 2001 From: James Zern Date: Sat, 8 Aug 2015 11:10:44 -0700 Subject: vpx_ports/x86.h: fix visual studio build warning test for WINAPI_FAMILY_PARTITION before using it Change-Id: I6b7a7b1ccd3332b31c73b733f88c997e30b22de8 --- vpx_ports/x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpx_ports/x86.h b/vpx_ports/x86.h index 0fef6a525..5da346e58 100644 --- a/vpx_ports/x86.h +++ b/vpx_ports/x86.h @@ -136,7 +136,7 @@ static INLINE uint64_t xgetbv(void) { #define xgetbv() 0U // no AVX for older x64 or unrecognized toolchains. #endif -#if defined(_MSC_VER) +#if defined(_MSC_VER) && _MSC_VER >= 1700 #include #if WINAPI_FAMILY_PARTITION(WINAPI_FAMILY_APP) #define getenv(x) NULL -- cgit v1.2.3