[FFmpeg-cvslog] configure: force _WIN32_WINNT >= 0x0502 on mingw32 targets
James Almer
git at videolan.org
Mon Aug 22 23:33:54 EEST 2016
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Aug 19 15:38:28 2016 -0300| [69f7aad5710f280ad854ea0bb84d59ed1b55bf5b] | committer: James Almer
configure: force _WIN32_WINNT >= 0x0502 on mingw32 targets
Windows versions earlier than XP are not supported.
Should fix compilation of command line tools.
Tested-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=69f7aad5710f280ad854ea0bb84d59ed1b55bf5b
---
configure | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configure b/configure
index 894e7a9..5b017fd 100755
--- a/configure
+++ b/configure
@@ -4920,6 +4920,8 @@ probe_libc(){
(__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" ||
die "ERROR: MinGW32 runtime version must be >= 3.15."
add_${pfx}cppflags -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1
+ check_${pfx}cpp_condition _mingw.h "defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0502" ||
+ add_${pfx}cppflags -D_WIN32_WINNT=0x0502
eval test \$${pfx_no_}cc_type = "gcc" &&
add_${pfx}cppflags -D__printf__=__gnu_printf__
elif check_${pfx}cpp_condition crtversion.h "defined _VC_CRT_MAJOR_VERSION"; then
More information about the ffmpeg-cvslog
mailing list