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

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

From:
sisyphus1
Date:
October 27, 2017 05:59
Subject:
Re: [perl #130447] Win32: Define __USE_MINGW_ANSI_STDIO for all gccbuilds
Message ID:
51BA63A26FB34BB4A65A44750D9E40FB@OwnerPC311012
-----Original Message----- 
From: sisyphus1@optusnet.com.au
Sent: Wednesday, May 31, 2017 9:21 PM
To: Steve Hay ; kmx
Cc: perlbug-followup@perl.org ; perl5-porters@perl.org ; Andy Grundman ; Jan 
Dubois
Subject: Re: [perl #130447] Win32: Define __USE_MINGW_ANSI_STDIO for all gcc 
builds

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.

Cheers,
Rob 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About