diff dmd/expression.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 a8cd9bc1021a
children 2b72433d5c8c
line wrap: on
line diff
--- a/dmd/expression.c	Sat Jun 21 02:48:53 2008 +0200
+++ b/dmd/expression.c	Sat Jun 21 03:14:49 2008 +0200
@@ -19,6 +19,12 @@
 extern "C" char * __cdecl __locale_decpoint;
 #endif
 
+#if __MINGW32__
+#ifndef isnan
+#define isnan _isnan
+#endif
+#endif
+
 #if IN_GCC
 // Issues with using -include total.h (defines integer_t) and then complex.h fails...
 #undef integer_t