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

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