diff dmd/mtype.c @ 285:297690b5d4a5 trunk

[svn r306] Fixed: it's now possible to compile and link llvmdc with MinGW32 and msys on Win32 :D I tried it myself ;) Building the runtime still needs some work, but it's a step in the right direction.
author lindquist
date Sat, 21 Jun 2008 03:14:49 +0200
parents d9d5d59873d8
children 2b72433d5c8c
line wrap: on
line diff
--- a/dmd/mtype.c	Sat Jun 21 02:48:53 2008 +0200
+++ b/dmd/mtype.c	Sat Jun 21 03:14:49 2008 +0200
@@ -25,6 +25,8 @@
 #include <limits>
 #elif __DMC__
 #include <complex.h>
+#elif __MINGW32__
+#include <malloc.h>
 #else
 //#define signbit 56
 #endif
@@ -32,6 +34,9 @@
 #if __APPLE__
 #include <math.h>
 static double zero = 0;
+#elif __MINGW32__
+#include <math.h>
+static double zero = 0;
 #elif __GNUC__
 #include <math.h>
 #include <bits/nan.h>