[MLton-commit] r7103
Ville Laurikari
ville at mlton.org
Wed Apr 22 04:36:55 PDT 2009
Define NAN and INFINITY if they don't come from the system (Solaris 8
doesn't have them).
----------------------------------------------------------------------
U mlton/trunk/runtime/platform/solaris.h
----------------------------------------------------------------------
Modified: mlton/trunk/runtime/platform/solaris.h
===================================================================
--- mlton/trunk/runtime/platform/solaris.h 2009-04-22 08:49:43 UTC (rev 7102)
+++ mlton/trunk/runtime/platform/solaris.h 2009-04-22 11:36:54 UTC (rev 7103)
@@ -110,3 +110,12 @@
#define HAS_FPCLASSIFY FALSE
#define HAS_FPCLASSIFY32 FALSE
#define HAS_FPCLASSIFY64 TRUE
+
+/* These are not predefined on Solaris 8. */
+#ifndef NAN
+#define NAN (__builtin_nanf (""))
+#endif
+
+#ifndef INFINITY
+#define INFINITY (__builtin_inff())
+#endif
More information about the MLton-commit
mailing list