From: Eli Zaretskii Date: Fri, 18 Oct 2013 10:12:22 +0000 (+0300) Subject: Fix MinGW64 problem with non-compliant vsnprintf. X-Git-Tag: 4.1~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1d737d0fafeb0b50452b6e94c808852712a5d3a;p=thirdparty%2Fmake.git Fix MinGW64 problem with non-compliant vsnprintf. makeint.h (__USE_MINGW_ANSI_STDIO) [__MINGW64_VERSION_MAJOR]: Define for MinGW64, to force it to use an ANSI-compliant implementation of vsnprintf. Reported by Christian Boos . --- diff --git a/makeint.h b/makeint.h index 3e222961..15f2dd42 100644 --- a/makeint.h +++ b/makeint.h @@ -56,6 +56,12 @@ char *alloca (); #endif #include "gnumake.h" +/* Force MinGW64 to use a replacement for MS broken vsnprintf + implementation. */ +#ifdef __MINGW64_VERSION_MAJOR +# define __USE_MINGW_ANSI_STDIO 1 +#endif + #ifdef CRAY /* This must happen before #include so that the declaration therein is changed. */