From: Gurusamy Sarathy <gsar@cpan.org>
Date: Mon, 6 Mar 2000 14:55:08 +0000 (+0000)
Subject: 64-bit build fix on VMS (from Dan Sugalski)
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bcbf61bcb9d7dfa91f65f1f74f68780cd15033e2;p=p5sagit%2Fp5-mst-13.2.git

64-bit build fix on VMS (from Dan Sugalski)

p4raw-id: //depot/perl@5579
---

diff --git a/toke.c b/toke.c
index ac74ba0..5740442 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);
diff --git a/vms/subconfigure.com b/vms/subconfigure.com
index 5c1c4a3..6dbe4d0 100644
--- a/vms/subconfigure.com
+++ b/vms/subconfigure.com
@@ -3544,11 +3544,14 @@ $   type = "''perl_i64type'"
 $   size_name = "i64size"
 $   gosub type_size_check
 $   perl_i64size="''line'"
+$   perl_ivtype="''perl_i64type'"
 $
 $   type = "''perl_u64type'"
 $   size_name = "u64size"
 $   gosub type_size_check
 $   perl_u64size="''line'"
+$   perl_uvtype="''perl_u64type'"
+$   perl_nvtype="long double"
 $ Else
 $   perl_i64size="undef"
 $   perl_u64size="undef"