From: James Zern Date: Sat, 8 Aug 2015 18:10:44 +0000 (-0700) Subject: vpx_ports/x86.h: fix visual studio build warning X-Git-Tag: v1.5.0~303 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6032239e2faeaf132d809f00cf6da4c285a07000;p=libvpx vpx_ports/x86.h: fix visual studio build warning test for WINAPI_FAMILY_PARTITION before using it Change-Id: I6b7a7b1ccd3332b31c73b733f88c997e30b22de8 --- 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