From 35dd0fb2716f7848be34bd66f7420a5f2f3c80e7 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 10 May 2010 16:25:43 -0700 Subject: [PATCH] Patch v8 build for solaris Submitted this patch to V8 http://codereview.chromium.org/1990010/show --- deps/v8/SConstruct | 3 +++ deps/v8/src/platform.h | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/deps/v8/SConstruct b/deps/v8/SConstruct index 022d741..597d033 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 82e2e3c..7156441 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. -- 2.7.4