Index: source/libvpx/vpx_ports/x86.h |
diff --git a/source/libvpx/vpx_ports/x86.h b/source/libvpx/vpx_ports/x86.h |
index 7d93710c4b0381ae0199172d2c57fa4e6232ce71..5da346e58fc53ac525779374e71902a59814b31c 100644 |
--- a/source/libvpx/vpx_ports/x86.h |
+++ b/source/libvpx/vpx_ports/x86.h |
@@ -136,6 +136,13 @@ static INLINE uint64_t xgetbv(void) { |
#define xgetbv() 0U // no AVX for older x64 or unrecognized toolchains. |
#endif |
+#if defined(_MSC_VER) && _MSC_VER >= 1700 |
+#include <windows.h> |
+#if WINAPI_FAMILY_PARTITION(WINAPI_FAMILY_APP) |
+#define getenv(x) NULL |
+#endif |
+#endif |
+ |
#define HAS_MMX 0x01 |
#define HAS_SSE 0x02 |
#define HAS_SSE2 0x04 |