diff dmd/mtype.c @ 1393:04177061f98d

Patch to allow compiling LDC with MinGW, by `mp4 / [1]jaffa` (slightly edited). Closes #300.
author Frits van Bommel <fvbommel wxs.nl>
date Mon, 18 May 2009 14:02:50 +0200
parents 8026319762be
children df11cdec45a2
line wrap: on
line diff
--- a/dmd/mtype.c	Sun May 17 23:33:35 2009 +0200
+++ b/dmd/mtype.c	Mon May 18 14:02:50 2009 +0200
@@ -94,7 +94,7 @@
 int Tsize_t = Tuns32;
 int Tptrdiff_t = Tint32;
 
-#if _WIN32
+#if _WIN32 && !defined __MINGW32__
 static double zero = 0;
 double Port::nan = NAN;
 double Port::infinity = 1/zero;