mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
build: Add -D_XOPEN_SOURCE=600 to CPPFLAGS on Cygwin
This is required to make certain math defines visible on modern Cygwin.
This commit is contained in:
parent
39fbcf8f76
commit
f8a1ead0ae
2
configure
vendored
2
configure
vendored
@ -4017,7 +4017,7 @@ probe_libc(){
|
||||
# MinGW headers can be installed on Cygwin, so check for newlib first.
|
||||
elif check_${pfx}cpp_condition newlib.h "defined _NEWLIB_VERSION"; then
|
||||
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.
|
||||
elif check_${pfx}cpp_condition _mingw.h "defined __MINGW64_VERSION_MAJOR"; then
|
||||
eval ${pfx}libc_type=mingw64
|
||||
|
Loading…
Reference in New Issue
Block a user