[Vm-dev] [commit] r2615 - include default float.h when not compiling with mingw

commits at squeakvm.org commits at squeakvm.org
Mon Sep 17 23:50:54 UTC 2012


Author: piumarta
Date: 2012-09-17 16:50:54 -0700 (Mon, 17 Sep 2012)
New Revision: 2615

Modified:
   trunk/platforms/win32/vm/sqWin32Intel.c
Log:
include default float.h when not compiling with mingw

Modified: trunk/platforms/win32/vm/sqWin32Intel.c
===================================================================
--- trunk/platforms/win32/vm/sqWin32Intel.c	2012-09-17 00:58:51 UTC (rev 2614)
+++ trunk/platforms/win32/vm/sqWin32Intel.c	2012-09-17 23:50:54 UTC (rev 2615)
@@ -24,7 +24,11 @@
 #include <stdio.h>
 #include <string.h>
 #include <fcntl.h> /* _O_BINARY */
-#include <mingw-include/float.h>	/* prevent the one in lib/gcc/XYZ/include from interfering */
+#if defined(__MINGW32__) || defined(__MINGW64__)
+# include <mingw-include/float.h>	/* prevent the one in lib/gcc/XYZ/include from interfering */
+#else
+# include <float.h>
+#endif
 #include <ole2.h>
 #include "sq.h"
 #include "sqWin32Args.h"



More information about the Vm-dev mailing list