]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Fix MinGW64 problem with non-compliant vsnprintf.
authorEli Zaretskii <eliz@gnu.org>
Fri, 18 Oct 2013 10:12:22 +0000 (13:12 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 18 Oct 2013 10:12:22 +0000 (13:12 +0300)
 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
 <cboos@edgewall.org>.

makeint.h

index 3e222961886eab2394eaab3612f090ff9f58e116..15f2dd42bd9f3d12efdc1de81c6c98e2eaa3df33 100644 (file)
--- 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 <signal.h> so
    that the declaration therein is changed.  */