diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-10-18 13:12:22 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-10-18 13:12:22 +0300 |
commit | 5c474447cca3f2377b1aa67406ba3dfb85491e1f (patch) | |
tree | d3977c39d38b49024b1b4944f0e6ebd4c90a80f4 /makeint.h | |
parent | 680db2dca1530bf04c4515689886e81e6746d4ab (diff) | |
download | make-5c474447cca3f2377b1aa67406ba3dfb85491e1f.tar.gz |
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
<cboos@edgewall.org>.
Diffstat (limited to 'makeint.h')
-rw-r--r-- | makeint.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. */ |