Mercurial > projects > ldc
changeset 1431:5f6f0929ee4c
Define __C99FEATURES__ in lexer.c for Solaris. Fixes #313.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 30 May 2009 12:47:35 +0200 |
parents | c6cc9cf12bec |
children | 42e6af9d50a1 |
files | dmd/lexer.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dmd/lexer.c Thu May 28 22:00:08 2009 +0200 +++ b/dmd/lexer.c Sat May 30 12:47:35 2009 +0200 @@ -8,6 +8,10 @@ // in artistic.txt, or the GNU General Public License in gnu.txt. // See the included readme.txt for details. +#if __sun && __SVR4 +#define __C99FEATURES__ 1 // Needed on Solaris for NaN and more, LDC#313 +#endif + #if IN_LLVM #include <cmath> #endif