changeset 1008:4c20df3837f9

Preparation for next patch. Don't ask about why this is needed. I hate the preprocessor. Let's just leave it at that.
author Frits van Bommel <fvbommel wxs.nl>
date Sat, 28 Feb 2009 16:09:35 +0100
parents 132bece5ae62
children b1b23a64ad8c
files dmd/mtype.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/mtype.c	Sat Feb 28 13:48:49 2009 +0100
+++ b/dmd/mtype.c	Sat Feb 28 16:09:35 2009 +0100
@@ -15,7 +15,7 @@
 #include <alloca.h>
 #endif
 
-#include <math.h>
+#include <cmath>
 
 #include <stdio.h>
 #include <assert.h>
@@ -38,13 +38,10 @@
 #endif
 
 #if __APPLE__
-#include <math.h>
 static double zero = 0;
 #elif __MINGW32__
-#include <math.h>
 static double zero = 0;
 #elif __GNUC__
-#include <math.h>
 #if !(defined (__SVR4) && defined (__sun))
 #include <bits/nan.h>
 #include <bits/mathdef.h>
@@ -1134,7 +1131,7 @@
 		// constant folding.
 		volatile d_float80 foo;
 		foo = NAN;
-		if (signbit(foo))	// signbit sometimes, not always, set
+		if (std::signbit(foo))	// signbit sometimes, not always, set
 		    foo = -foo;		// turn off sign bit
 		fvalue = foo;
 #elif _MSC_VER