[FFmpeg-cvslog] configure: Fix the msvcrt version check for mingw32
Martin Storsjö
git at videolan.org
Wed May 31 14:04:33 EEST 2017
ffmpeg | branch: release/3.3 | Martin Storsjö <martin at martin.st> | Wed May 31 12:53:32 2017 +0300| [1cbeb16187c87655e1affaae075a9646aeb465e6] | committer: Hendrik Leppkes
configure: Fix the msvcrt version check for mingw32
This was actually broken when committed in 46e3936fb04; the
test never succeeded, and thus, _aligned_malloc wasn't actually
used on legacy mingw.
Signed-off-by: Martin Storsjö <martin at martin.st>
(cherry picked from commit 427f7a1f9ec1977bcb57cb4d6e6f7228dc1e858b)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1cbeb16187c87655e1affaae075a9646aeb465e6
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 9b5789ab83..23823e3b70 100755
--- a/configure
+++ b/configure
@@ -5067,7 +5067,7 @@ probe_libc(){
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
- check_${pfx}cpp_condition _mingw.h "__MSVCRT_VERSION__ < 0x0700__" &&
+ check_${pfx}cpp_condition _mingw.h "__MSVCRT_VERSION__ < 0x0700" &&
add_${pfx}cppflags -D__MSVCRT_VERSION__=0x0700
eval test \$${pfx_no_}cc_type = "gcc" &&
add_${pfx}cppflags -D__printf__=__gnu_printf__
More information about the ffmpeg-cvslog
mailing list