Commit f8a1ead0 authored by Diego Biurrun's avatar Diego Biurrun

build: Add -D_XOPEN_SOURCE=600 to CPPFLAGS on Cygwin

This is required to make certain math defines visible on modern Cygwin.
parent 39fbcf8f
...@@ -4017,7 +4017,7 @@ probe_libc(){ ...@@ -4017,7 +4017,7 @@ probe_libc(){
# MinGW headers can be installed on Cygwin, so check for newlib first. # MinGW headers can be installed on Cygwin, so check for newlib first.
elif check_${pfx}cpp_condition newlib.h "defined _NEWLIB_VERSION"; then elif check_${pfx}cpp_condition newlib.h "defined _NEWLIB_VERSION"; then
eval ${pfx}libc_type=newlib eval ${pfx}libc_type=newlib
add_${pfx}cppflags -U__STRICT_ANSI__ add_${pfx}cppflags -U__STRICT_ANSI__ -D_XOPEN_SOURCE=600
# MinGW64 is backwards compatible with MinGW32, so check for it first. # MinGW64 is backwards compatible with MinGW32, so check for it first.
elif check_${pfx}cpp_condition _mingw.h "defined __MINGW64_VERSION_MAJOR"; then elif check_${pfx}cpp_condition _mingw.h "defined __MINGW64_VERSION_MAJOR"; then
eval ${pfx}libc_type=mingw64 eval ${pfx}libc_type=mingw64
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment