comparison dmd2/mtype.c @ 1188:442ab244c455

Apply small includes patch for FreeBSD. Thanks kimelto!
author Christian Kamm <kamm incasoftware de>
date Thu, 02 Apr 2009 19:16:44 +0200
parents 4d366a75d95f
children 638d16625da2
comparison
equal deleted inserted replaced
1187:a95fc9fcad5c 1188:442ab244c455
7 // License for redistribution is by either the Artistic License 7 // License for redistribution is by either the Artistic License
8 // in artistic.txt, or the GNU General Public License in gnu.txt. 8 // in artistic.txt, or the GNU General Public License in gnu.txt.
9 // See the included readme.txt for details. 9 // See the included readme.txt for details.
10 10
11 #define __USE_ISOC99 1 // so signbit() gets defined 11 #define __USE_ISOC99 1 // so signbit() gets defined
12
13 #ifdef __DMC__
14 #include <math.h>
15 #else
12 #include <cmath> 16 #include <cmath>
17 #endif
13 18
14 #include <stdio.h> 19 #include <stdio.h>
15 #include <assert.h> 20 #include <assert.h>
16 #include <float.h> 21 #include <float.h>
17 22
29 #include <malloc.h> 34 #include <malloc.h>
30 #else 35 #else
31 //#define signbit 56 36 //#define signbit 56
32 #endif 37 #endif
33 38
34 #if __APPLE__ 39 #if __GNUC__
35 #include <cmath> 40 #if !(defined (__SVR4) && defined (__sun))
36 static double zero = 0;
37 #elif __MINGW32__
38 #include <cmath>
39 static double zero = 0;
40 #elif __GNUC__
41 #include <cmath>
42 #include <bits/nan.h> 41 #include <bits/nan.h>
43 #include <bits/mathdef.h> 42 #include <bits/mathdef.h>
43 #endif
44 #endif
44 static double zero = 0; 45 static double zero = 0;
45 #endif
46 46
47 #include "mem.h" 47 #include "mem.h"
48 48
49 #include "dsymbol.h" 49 #include "dsymbol.h"
50 #include "mtype.h" 50 #include "mtype.h"