summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2016-07-04 15:07:48 -0400
committerArun Raghavan <arun@arunraghavan.net>2016-07-14 12:57:43 +0900
commit12ac8441f75bab2a256278926fe32450a311af1b (patch)
tree166a53ff487cb540213d93a8999f8d2841f85a12
parent44cf7726cac66c88afa0a752aff461e0c2918ebd (diff)
build: 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
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f34be72..ccaa758 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,8 +65,11 @@ AS_CASE(["${host}"],
[OS_FLAGS="-DWEBRTC_MAC -DWEBRTC_IOS"],
[OS_FLAGS="-DWEBRTC_MAC"])
PLATFORM_CFLAGS="-DWEBRTC_POSIX"
+ ],
+ [*-mingw32*],
+ [
+ PLATFORM_CFLAGS="-DWEBRTC_WIN -U__STRICT_ANSI__"
]
- # FIXME: Add Windows support
)
AC_SUBST(PLATFORM_CFLAGS)