This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Provide option to build with -D__USE_MINGW_ANSI_STDIO
authorSteve Hay <steve.m.hay@googlemail.com>
Wed, 15 Nov 2017 18:17:17 +0000 (18:17 +0000)
committerSteve Hay <steve.m.hay@googlemail.com>
Wed, 15 Nov 2017 18:17:17 +0000 (18:17 +0000)
commitf019f33b79ce6bf1ffc1ef457eba44074b721ead
tree005b650fb7bab85bd3a2ac65b5e01a4bfa5a93b9
parentabd3d27a2b5be63392ef3cd13777a6009bdde66c
Provide option to build with -D__USE_MINGW_ANSI_STDIO

This commit adapts and extends a patch from sisyphus1@optusnet.com.au on
perl #130447.

Note for the future: One of the MinGW/gcc developers has said that
explicitly defining __USE_MINGW_ANSI_STDIO in this way is not guaranteed
to work in the future, so we may have to pursue other options instead one
day: https://rt.perl.org/Ticket/Display.html?id=130447#txn-1461711

However, we already do this for "nvtype=long double" builds and it's
working fine so far, so it seems acceptable to allow the same thing for
"nvtype=double" builds for now.
win32/GNUmakefile
win32/makefile.mk