]> git.sesse.net Git - ffmpeg/commitdiff
configure: Set __MSVCRT_VERSION__to 0x0700 for MinGW
authorDiego Biurrun <diego@biurrun.de>
Thu, 4 Aug 2016 15:01:03 +0000 (17:01 +0200)
committerDiego Biurrun <diego@biurrun.de>
Tue, 23 Aug 2016 15:07:26 +0000 (17:07 +0200)
This exposes some required functionality like _aligned_malloc() in the
MinGW system headers, thus obviating the need for the memalign hack.

configure

index 9f836b7d38c56222f4f09a12f8b00ef51e7a403b..e7bf5371f33cc977e559c9f4f8f98d1b76cbbf63 100755 (executable)
--- a/configure
+++ b/configure
@@ -4003,6 +4003,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 "__MSVCRT_VERSION__ < 0x0700__" &&
+            add_${pfx}cppflags -D__MSVCRT_VERSION__=0x0700
         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