p4raw-id: //depot/cfgperl@6037
break;
case 'H':
if (strEQ(name, "HUGE_VAL"))
+#ifdef USE_LONG_DOUBLE
+ /* HUGE_VALL is admittedly non-POSIX but if are using long doubles
+ * we might as well use long doubles. --jhi */
+# ifdef HUGE_VALL
+ return HUGE_VALL;
+# else
+ goto not_there;
+# endif
+#endif
#ifdef HUGE_VAL
return HUGE_VAL;
#else
}
#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.
NV
Perl_huge(void)
{
- return HUGE_VAL;
+# if defined(USE_LONG_DOUBLE) && defined(HUGE_VALL)
+ return HUGE_VALL;
+# endif
+ return HUGE_VAL;
}
#endif