aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-12-09 00:50:39 +0100
committerDiego Biurrun <diego@biurrun.de>2013-12-11 20:25:28 +0100
commit3bb91a1b5c4a0c5ec9c4d3b6649b23285c3d7f26 (patch)
treef3dc8a6379b13d9e88d034d4aae478823996dbdf
parent2a0fb7286d67c47e44aa76c237ede117b22af616 (diff)
downloadffmpeg-3bb91a1b5c4a0c5ec9c4d3b6649b23285c3d7f26.tar.gz
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'.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index f624cfc521..1ccd75ff6d 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 || \