configure: Fix the msvcrt version check for mingw

Message ID 20170531095624.44522-1-martin@martin.st
State Committed
Commit 427f7a1f9ec1977bcb57cb4d6e6f7228dc1e858b
Headers show

Commit Message

Martin Storsjö May 31, 2017, 9:56 a.m.
This was actually broken when committed in 46e3936fb04; the
test never succeeded, and thus, _aligned_malloc wasn't actually
used on legacy mingw.
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Diego Biurrun May 31, 2017, 10:23 a.m. | #1
On Wed, May 31, 2017 at 12:56:24PM +0300, Martin Storsjö wrote:
> This was actually broken when committed in 46e3936fb04; the
> test never succeeded, and thus, _aligned_malloc wasn't actually
> used on legacy mingw.
> ---
>  configure | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Doh :-(

OK

Diego

Patch

diff --git a/configure b/configure
index be52d4df92..fb3920a261 100755
--- a/configure
+++ b/configure
@@ -4131,7 +4131,7 @@  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__" &&
+        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__