diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-01-17 08:35:49 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-01-17 08:35:49 +0000 |
commit | fc68435e3bc2319d16a41401118f9f6c9632e3c0 (patch) | |
tree | 50ad4025082c3d2f7247d51e7126f896d72b2220 /perl.h | |
parent | 38192672c8214bacabd25e094d76f7e2728d5de6 (diff) | |
download | perl-fc68435e3bc2319d16a41401118f9f6c9632e3c0.tar.gz |
Add -D_GNU_SOURCE into ccflags for gcc (for now to expose
the strtold() and qgcvt() prototypes for long doubles, but
it should be okay in any case); fix bad assumptions in the
test suite about string->float conversions; though the out
parameter of strtold() (and strtoll()) is unused, it is nicer
to have it in correct type.
p4raw-id: //depot/cfgperl@4810
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1091,7 +1091,7 @@ typedef NVTYPE NV; #if !defined(Perl_atof) && defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE) # if !defined(Perl_atof) && defined(HAS_STRTOLD) -# define Perl_atof(s) strtold(s, (char*)0) +# define Perl_atof(s) strtold(s, (char**)NULL) # endif # if !defined(Perl_atof) && defined(HAS_ATOLF) # define Perl_atof atolf @@ -2987,7 +2987,7 @@ typedef struct am_table_short AMTS; #if !defined(Atol) && defined(USE_LONG_LONG) && defined(HAS_LONG_LONG) # if !defined(Atol) && defined(HAS_STRTOLL) -# define Atol(s) strtoll(s, (char*)0, 10) +# define Atol(s) strtoll(s, (char**)NULL, 10) # endif # if !defined(Atol) && defined(HAS_ATOLL) # define Atol atoll |