aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-12-12 00:39:43 +0100
committerDiego Biurrun <diego@biurrun.de>2013-12-13 16:47:49 +0100
commit7c3388711b7243d059db39aa04b754baf2156934 (patch)
tree1feb67fe1738d0a60e8b5d5ea1aa53fd2c3d0a90 /configure
parentbdc111a162094c14660d1e88839d103a4d79e42a (diff)
downloadffmpeg-7c3388711b7243d059db39aa04b754baf2156934.tar.gz
configure: Add -D__USE_MINGW_ANSI_STDIO=1 to CPPFLAGS on MinGW32
This enables a more C99-compliant implementation of printf et al.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 40d12e2606..f099e75b86 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