develooper Front page | perl.perl5.porters | Postings from October 2017

Re: [perl #130447] Win32: Define __USE_MINGW_ANSI_STDIO for all gccbuilds

October 27, 2017 05:59
Re: [perl #130447] Win32: Define __USE_MINGW_ANSI_STDIO for all gccbuilds
Message ID:
-----Original Message----- 
Sent: Wednesday, May 31, 2017 9:21 PM
To: Steve Hay ; kmx
Cc: ; ; Andy Grundman ; Jan 
Subject: Re: [perl #130447] Win32: Define __USE_MINGW_ANSI_STDIO for all gcc 

Since nothing has happened with this, AFAICT, I thought I'd send a patch 
(attached) against the win32/GNUmakefile that shipped with perl-5.27.5.

It merely gives one the *option* of building with -D__USE_MINGW_ANSI_STDIO 
when building with nvtype=double.
With the patch applied, the default for such builds is still to build 
*without* defining __USE_MINGW_ANSI_STDIO - as has always been the default 
for the "nvtype=double" builds.

For "nvtype=long double" builds (as has always been the 
case) -D__USE_MINGW_ANSI_STDIO is inevitably defined  .... unless, of 
course, one hacks the contents  of the GNUmakefile.
I don't see any value in building "nvtype=long double" builds without 
defining __USE_MINGW_ANSI_STDIO, and see no need to provide such an option.

I hope that someone can apply this patch.
I've tested it and it works as intended.

If it's deemed more appropriate that -D__USE_MINGW_ANSI_STDIO  should be the 
*default* for "nvtype=double" builds, then I'd be quite happy with that 
change, too.

Rob Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About