From b8f5c5e1ac4cf16f960ede49401e7bbca66b9783 Mon Sep 17 00:00:00 2001 From: "erik.corry@gmail.com" Date: Tue, 11 May 2010 07:04:42 +0000 Subject: [PATCH] Move __C99FEATURES__ define to compile for Solaris Patch from ry. http://codereview.chromium.org/1990010/show git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4638 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- SConstruct | 3 +++ src/platform.h | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/SConstruct b/SConstruct index 244e8ac69..1056de7d6 100644 --- a/SConstruct +++ b/SConstruct @@ -179,6 +179,9 @@ LIBRARY_FLAGS = { 'CCFLAGS': ['-ansi'], }, 'os:solaris': { + # On Solaris, to get isinf, INFINITY, fpclassify and other macros one + # needs to define __C99FEATURES__. + 'CPPDEFINES': ['__C99FEATURES__'], 'CPPPATH' : ['/usr/local/include'], 'LIBPATH' : ['/usr/local/lib'], 'CCFLAGS': ['-ansi'], diff --git a/src/platform.h b/src/platform.h index 82e2e3c06..7156441b3 100644 --- a/src/platform.h +++ b/src/platform.h @@ -44,12 +44,6 @@ #ifndef V8_PLATFORM_H_ #define V8_PLATFORM_H_ -#ifdef __sun -// On Solaris, to get isinf, INFINITY, fpclassify and other macros one needs -// to define this symbol -#define __C99FEATURES__ 1 -#endif - #define V8_INFINITY INFINITY // Windows specific stuff. -- 2.34.1