Blame SOURCES/0004-build-Add-required-define-for-Windows.patch

71361e
From 12ac8441f75bab2a256278926fe32450a311af1b Mon Sep 17 00:00:00 2001
71361e
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
71361e
Date: Mon, 4 Jul 2016 15:07:48 -0400
71361e
Subject: [PATCH 04/16] build: Add required define for Windows
71361e
71361e
This will also add it to the .pc file as WEBRTC_WIN leaks into the
71361e
public interface and undefined __STRICT_ANSI__ so M_PI is available.
71361e
71361e
https://bugs.freedesktop.org/show_bug.cgi?id=96754
71361e
---
71361e
 configure.ac | 5 ++++-
71361e
 1 file changed, 4 insertions(+), 1 deletion(-)
71361e
71361e
diff --git a/configure.ac b/configure.ac
71361e
index f34be72..ccaa758 100644
71361e
--- a/configure.ac
71361e
+++ b/configure.ac
71361e
@@ -65,8 +65,11 @@ AS_CASE(["${host}"],
71361e
              [OS_FLAGS="-DWEBRTC_MAC -DWEBRTC_IOS"],
71361e
              [OS_FLAGS="-DWEBRTC_MAC"])
71361e
          PLATFORM_CFLAGS="-DWEBRTC_POSIX"
71361e
+        ],
71361e
+    [*-mingw32*],
71361e
+        [
71361e
+         PLATFORM_CFLAGS="-DWEBRTC_WIN -U__STRICT_ANSI__"
71361e
         ]
71361e
-    # FIXME: Add Windows support
71361e
 )
71361e
 AC_SUBST(PLATFORM_CFLAGS)
71361e
 
71361e
-- 
71361e
2.14.3
71361e