diff --git a/deps/v8/SConstruct b/deps/v8/SConstruct index 022d7411da..597d033459 100644 --- a/deps/v8/SConstruct +++ b/deps/v8/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/deps/v8/src/platform.h b/deps/v8/src/platform.h index 82e2e3c062..7156441b3a 100644 --- a/deps/v8/src/platform.h +++ b/deps/v8/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.