From 750260070a1323f846329363541cda37630cfbc8 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Sat, 30 May 2009 12:47:35 +0200 Subject: [PATCH] Define __C99FEATURES__ in lexer.c for Solaris. Fixes #313. --- dmd/lexer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dmd/lexer.c b/dmd/lexer.c index 248f16b6..0866a387 100644 --- a/dmd/lexer.c +++ b/dmd/lexer.c @@ -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 #endif