ref: 20babf6d9df102b5e2b9fe65ba6a0dfe3ad4edb8
parent: 140262d39fd295f10ff4f72d80225015ee3386c5
author: Martin Storsjo <[email protected]>
date: Wed May 29 16:37:49 EDT 2013
Don't try to use getenv on windows phone/rt The getenv function doesn't exist there. In Visual Studio 2012, the function still existed in the link libraries even though it was hidden in the headers, but in the 2013 version it has been removed from the link libraries as well. Change-Id: Iea6289a698fa1788e906f5aabb6fddda3675815b
--- a/vpx_ports/arm_cpudetect.c
+++ b/vpx_ports/arm_cpudetect.c
@@ -12,6 +12,13 @@
#include <string.h>
#include "arm.h"
+#ifdef WINAPI_FAMILY
+#include <winapifamily.h>
+#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
+#define getenv(x) NULL
+#endif
+#endif
+
static int arm_cpu_env_flags(int *flags) {
char *env;
env = getenv("VPX_SIMD_CAPS");