shithub: libvpx

Download patch

ref: a24e24386ed8cdc08492ed657dabfae28fc9a975
parent: 928ff03889dadc3f63883553b443c08e625b4885
parent: 20babf6d9df102b5e2b9fe65ba6a0dfe3ad4edb8
author: Johann <johannkoenig@google.com>
date: Wed May 7 02:00:04 EDT 2014

Merge "Don't try to use getenv on windows phone/rt"

--- 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");
--