[FFmpeg-cvslog] build: Add -D_XOPEN_SOURCE=600 to CPPFLAGS on Cygwin

Diego Biurrun git at videolan.org
Mon Apr 17 11:27:34 EEST 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Dec  9 15:45:05 2016 +0100| [f8a1ead0ae4402df0503c83f213f57b785a5f20f] | committer: Diego Biurrun

build: Add -D_XOPEN_SOURCE=600 to CPPFLAGS on Cygwin

This is required to make certain math defines visible on modern Cygwin.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f8a1ead0ae4402df0503c83f213f57b785a5f20f
---

 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 731986abeb..804eee6df7 100755
--- a/configure
+++ b/configure
@@ -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



More information about the ffmpeg-cvslog mailing list