summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-01-17 08:35:49 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-01-17 08:35:49 +0000
commitfc68435e3bc2319d16a41401118f9f6c9632e3c0 (patch)
tree50ad4025082c3d2f7247d51e7126f896d72b2220 /perl.h
parent38192672c8214bacabd25e094d76f7e2728d5de6 (diff)
downloadperl-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index a6958f4c95..30130fd262 100644
--- a/perl.h
+++ b/perl.h
@@ -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