[FFmpeg-cvslog] configure: Add -D__USE_MINGW_ANSI_STDIO=1 to CPPFLAGS on MinGW64

Diego Biurrun git at videolan.org
Wed Dec 11 22:58:36 CET 2013


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Dec  9 00:50:39 2013 +0100| [3bb91a1b5c4a0c5ec9c4d3b6649b23285c3d7f26] | committer: Diego Biurrun

configure: Add -D__USE_MINGW_ANSI_STDIO=1 to CPPFLAGS on MinGW64

This enables a more POSIX-compliant printf implementation, that
allows using length modifiers like 'z'.

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

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

diff --git a/configure b/configure
index f624cfc..1ccd75f 100755
--- a/configure
+++ b/configure
@@ -3415,7 +3415,7 @@ probe_libc(){
     # 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
-        add_${pfx}cppflags -U__STRICT_ANSI__
+        add_${pfx}cppflags -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1
     elif check_${pfx}cpp_condition _mingw.h "defined __MINGW32_VERSION"; then
         eval ${pfx}libc_type=mingw32
         check_${pfx}cpp_condition _mingw.h "__MINGW32_MAJOR_VERSION > 3 || \



More information about the ffmpeg-cvslog mailing list