Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/dmd/mtype.c Sun Jan 04 15:39:34 2009 +0100 +++ b/dmd/mtype.c Sun Jan 04 15:49:28 2009 +0100 @@ -8,7 +8,13 @@ // in artistic.txt, or the GNU General Public License in gnu.txt. // See the included readme.txt for details. +#define __C99FEATURES__ 1 // Needed on Solaris for NaN and more #define __USE_ISOC99 1 // so signbit() gets defined + +#if (defined (__SVR4) && defined (__sun)) +#include <alloca.h> +#endif + #include <math.h> #include <stdio.h>