comparison dmd/mtype.c @ 872:aa953cc960b6

Apply BlueZeniX's patch for OpenSolaris compatibility. Fixes #158.
author Christian Kamm <kamm incasoftware de>
date Sun, 04 Jan 2009 15:49:28 +0100
parents bc982f1ad106
children 330f999ade44
comparison
equal deleted inserted replaced
871:e70a0e7e2260 872:aa953cc960b6
6 // http://www.digitalmars.com 6 // http://www.digitalmars.com
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 __C99FEATURES__ 1 // Needed on Solaris for NaN and more
11 #define __USE_ISOC99 1 // so signbit() gets defined 12 #define __USE_ISOC99 1 // so signbit() gets defined
13
14 #if (defined (__SVR4) && defined (__sun))
15 #include <alloca.h>
16 #endif
17
12 #include <math.h> 18 #include <math.h>
13 19
14 #include <stdio.h> 20 #include <stdio.h>
15 #include <assert.h> 21 #include <assert.h>
16 #include <float.h> 22 #include <float.h>