From 20babf6d9df102b5e2b9fe65ba6a0dfe3ad4edb8 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Wed, 29 May 2013 20:37:49 +0300 Subject: [PATCH] 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 --- vpx_ports/arm_cpudetect.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vpx_ports/arm_cpudetect.c b/vpx_ports/arm_cpudetect.c index 542ff6786..fa0e030b5 100644 --- a/vpx_ports/arm_cpudetect.c +++ b/vpx_ports/arm_cpudetect.c @@ -12,6 +12,13 @@ #include #include "arm.h" +#ifdef WINAPI_FAMILY +#include +#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"); -- 2.40.0