# HG changeset patch # User Christian Kamm # Date 1243680455 -7200 # Node ID 5f6f0929ee4c038cbfba0a7d4ee261debbe73268 # Parent c6cc9cf12becbe48e75842a4be583bf787f059f6 Define __C99FEATURES__ in lexer.c for Solaris. Fixes #313. diff -r c6cc9cf12bec -r 5f6f0929ee4c dmd/lexer.c --- 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 #endif