From cd18ab3cb9c86de59ebddb10c3076bc8d9b4f341 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Mon, 4 Jul 2016 15:07:48 -0400 Subject: [PATCH] Add required define for Windows This will also add it to the .pc file as WEBRTC_WIN leaks into the public interface and undefined __STRICT_ANSI__ so M_PI is available. https://bugs.freedesktop.org/show_bug.cgi?id=96754 --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 400b4a4..96c00b9 100644 --- a/configure.ac +++ b/configure.ac @@ -67,8 +67,11 @@ AS_CASE(["${host}"], [OS_FLAGS="-DWEBRTC_MAC -DWEBRTC_IOS"], [OS_FLAGS="-DWEBRTC_MAC"]) PLATFORM_CFLAGS="-DWEBRTC_POSIX" + ], + [*win*], + [ + PLATFORM_CFLAGS="-DWEBRTC_WIN -U__STRICT_ANSI__" ] - # FIXME: Add Windows support ) AC_SUBST(PLATFORM_CFLAGS) -- 2.7.4