summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-06 14:55:08 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-06 14:55:08 +0000
commitbcbf61bcb9d7dfa91f65f1f74f68780cd15033e2 (patch)
tree8813a72d431b6001a0cb0f173bd17d7e1918cd7e /toke.c
parentf6a53ef27dbc44c1f1b90bd8ebb87c79583e7021 (diff)
downloadperl-bcbf61bcb9d7dfa91f65f1f74f68780cd15033e2.tar.gz
64-bit build fix on VMS (from Dan Sugalski)
p4raw-id: //depot/perl@5579
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index ac74ba089f..574044241e 100644
--- a/toke.c
+++ b/toke.c
@@ -7003,7 +7003,8 @@ Perl_scan_num(pTHX_ char *start)
if (floatit) {
char *tp;
errno = 0;
-#ifdef USE_LONG_DOUBLE
+/* For some reason VMS doesn't have strrold at the moment. Dunno why */
+#if defined(USE_LONG_DOUBLE) && (defined(HAS_STRTOLD) || !defined(VMS))
value = strtold(PL_tokenbuf,&tp);
#else
value = strtod(PL_tokenbuf,&tp);