summaryrefslogtreecommitdiff
path: root/vpx_ports/x86.h
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2015-08-08 11:10:44 -0700
committerJames Zern <jzern@google.com>2015-08-08 11:10:44 -0700
commit6032239e2faeaf132d809f00cf6da4c285a07000 (patch)
treeb7c97cb9a5fea87f23027d9c54ee5d51544c8b7f /vpx_ports/x86.h
parentf2e44aa66400206f4a8605b7622789304aaab1d0 (diff)
downloadlibvpx-6032239e2faeaf132d809f00cf6da4c285a07000.tar
libvpx-6032239e2faeaf132d809f00cf6da4c285a07000.tar.gz
libvpx-6032239e2faeaf132d809f00cf6da4c285a07000.tar.bz2
libvpx-6032239e2faeaf132d809f00cf6da4c285a07000.zip
vpx_ports/x86.h: fix visual studio build warning
test for WINAPI_FAMILY_PARTITION before using it Change-Id: I6b7a7b1ccd3332b31c73b733f88c997e30b22de8
Diffstat (limited to 'vpx_ports/x86.h')
-rw-r--r--vpx_ports/x86.h2
1 files changed, 1 insertions, 1 deletions
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 <windows.h>
#if WINAPI_FAMILY_PARTITION(WINAPI_FAMILY_APP)
#define getenv(x) NULL