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
This commit is contained in:
committed by
Arun Raghavan
parent
44cf7726ca
commit
12ac8441f7
@ -65,8 +65,11 @@ AS_CASE(["${host}"],
|
|||||||
[OS_FLAGS="-DWEBRTC_MAC -DWEBRTC_IOS"],
|
[OS_FLAGS="-DWEBRTC_MAC -DWEBRTC_IOS"],
|
||||||
[OS_FLAGS="-DWEBRTC_MAC"])
|
[OS_FLAGS="-DWEBRTC_MAC"])
|
||||||
PLATFORM_CFLAGS="-DWEBRTC_POSIX"
|
PLATFORM_CFLAGS="-DWEBRTC_POSIX"
|
||||||
|
],
|
||||||
|
[*-mingw32*],
|
||||||
|
[
|
||||||
|
PLATFORM_CFLAGS="-DWEBRTC_WIN -U__STRICT_ANSI__"
|
||||||
]
|
]
|
||||||
# FIXME: Add Windows support
|
|
||||||
)
|
)
|
||||||
AC_SUBST(PLATFORM_CFLAGS)
|
AC_SUBST(PLATFORM_CFLAGS)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user