JavaScriptCore/wtf/Platform.h defines a bunch of ENABLE_* macros, which turn features on and off. Most of these #defines are wrapped in #if !defined blocks, which allows the Platform.h definitions to serve as defaults, but lets external definitions override them. In Chromium, we want to build with ENABLE_DASHBOARD=0, but this is not possible on the Mac because Platform.h does: #if PLATFORM(MAC) #define ENABLE_DASHBOARD 1 #endif This results in a macro redefinition and is not what we want. I propose wrapping the ENABLE_DASHBOARD and ENABLE_MAC_JAVA_BRIDGE macros in #if !defined blocks like all other ENABLE_ macros in Platform.h.
Created attachment 24051 [details] Wrap #defines in #ifndef
Comment on attachment 24051 [details] Wrap #defines in #ifndef Change is fine but please add a description and bug url to the ChangeLog.
Created attachment 24119 [details] Wrap #defines in #ifndef
Committing to http://svn.webkit.org/repository/webkit/trunk ... M JavaScriptCore/ChangeLog M JavaScriptCore/wtf/Platform.h Committed r37363