Mercurial > projects > ldc
diff dmd/mtype.c @ 1257:7af860e4f403
Changes for mingw to compile properly
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Wed, 22 Apr 2009 14:49:49 -0600 |
parents | 465a77c904d4 |
children | 680b4df0ea36 |
line wrap: on
line diff
--- a/dmd/mtype.c Wed Apr 22 14:40:56 2009 -0600 +++ b/dmd/mtype.c Wed Apr 22 14:49:49 2009 -0600 @@ -88,6 +88,12 @@ int Tsize_t = Tuns32; int Tptrdiff_t = Tint32; +#if _WIN32 +static double zero = 0; +double Port::nan = NAN; +double Port::infinity = 1/zero; +#endif + /***************************** Type *****************************/ ClassDeclaration *Type::typeinfo;