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

Diego Biurrun git at videolan.org
Fri Dec 13 21:32:34 CET 2013


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Dec 12 00:39:43 2013 +0100| [7c3388711b7243d059db39aa04b754baf2156934] | committer: Diego Biurrun

configure: Add -D__USE_MINGW_ANSI_STDIO=1 to CPPFLAGS on MinGW32

This enables a more C99-compliant implementation of printf et al.

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

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

diff --git a/configure b/configure
index 40d12e2..f099e75 100755
--- a/configure
+++ b/configure
@@ -3422,7 +3422,7 @@ probe_libc(){
         check_${pfx}cpp_condition _mingw.h "__MINGW32_MAJOR_VERSION > 3 || \
             (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" ||
             die "ERROR: MinGW32 runtime version must be >= 3.15."
-        add_${pfx}cppflags -U__STRICT_ANSI__
+        add_${pfx}cppflags -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1
     elif check_${pfx}cpp_condition crtversion.h "defined _VC_CRT_MAJOR_VERSION"; then
         eval ${pfx}libc_type=msvcrt
         # The MSVC 2010 headers (Win 7.0 SDK) set _WIN32_WINNT to



More information about the ffmpeg-cvslog mailing list