64-bit build fix on VMS (from Dan Sugalski)
Gurusamy Sarathy [Mon, 6 Mar 2000 14:55:08 +0000 (14:55 +0000)]
p4raw-id: //depot/perl@5579

toke.c
vms/subconfigure.com

diff --git a/toke.c b/toke.c
index ac74ba0..5740442 100644 (file)
--- 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);
index 5c1c4a3..6dbe4d0 100644 (file)
@@ -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"