[MLton-commit] r4154

Stephen Weeks MLton@mlton.org
Fri, 4 Nov 2005 13:19:53 -0800


Don't use MinGW's fpclassify, which is broken.

----------------------------------------------------------------------

U   mlton/trunk/runtime/platform/mingw.h

----------------------------------------------------------------------

Modified: mlton/trunk/runtime/platform/mingw.h
===================================================================
--- mlton/trunk/runtime/platform/mingw.h	2005-11-04 21:19:14 UTC (rev 4153)
+++ mlton/trunk/runtime/platform/mingw.h	2005-11-04 21:19:52 UTC (rev 4154)
@@ -15,7 +15,10 @@
 #undef max
 
 #define HAS_FEROUND TRUE
-#define HAS_FPCLASSIFY TRUE
+// As of 20051104, MinGW has fpclassify, but it is broken.  In particular, it
+// classifies subnormals as normals.  So, we disable it here, which causes the
+// runtime to use our own version.
+#define HAS_FPCLASSIFY FALSE
 #define HAS_PTRACE FALSE
 #define HAS_REMAP FALSE
 #define HAS_SIGALTSTACK FALSE