summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-05-01 22:50:11 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-05-01 22:50:11 +0000
commit4d46a988fb57e00fb9da4a6d7b635516b5f56306 (patch)
treea719cbb5e27394a83c3d711001202dea2f89b8f3 /util.c
parenta45d1c963db196562caca890a443b969285f7f76 (diff)
downloadperl-4d46a988fb57e00fb9da4a6d7b635516b5f56306.tar.gz
Use HUGE_VALL if applicable.
p4raw-id: //depot/cfgperl@6037
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/util.c b/util.c
index 059d9a45fc..41ded136ff 100644
--- a/util.c
+++ b/util.c
@@ -3577,7 +3577,7 @@ Perl_new_struct_thread(pTHX_ struct perl_thread *t)
}
#endif /* USE_THREADS */
-#ifdef HUGE_VAL
+#if defined(HUGE_VAL) || (defined(USE_LONG_DOUBLE) && defined(HUGE_VALL))
/*
* This hack is to force load of "huge" support from libm.a
* So it is in perl for (say) POSIX to use.
@@ -3586,7 +3586,10 @@ Perl_new_struct_thread(pTHX_ struct perl_thread *t)
NV
Perl_huge(void)
{
- return HUGE_VAL;
+# if defined(USE_LONG_DOUBLE) && defined(HUGE_VALL)
+ return HUGE_VALL;
+# endif
+ return HUGE_VAL;
}
#endif