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

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