Commit ef8f0c5a authored by hans@chromium.org's avatar hans@chromium.org

Define Color::transparent et al. when using Clang on Windows

MSVC treats their in-class initializations as definitions, but other
compilers don't. This updates the #ifdef to handle the Clang on Windows
case.

BUG=82385
TEST=build blink_web.dll with Clang on Windows in Release mode

Review URL: https://codereview.chromium.org/330823006

git-svn-id: svn://svn.chromium.org/blink/trunk@176469 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent b6c9fe27
...@@ -37,7 +37,8 @@ using namespace std; ...@@ -37,7 +37,8 @@ using namespace std;
namespace WebCore { namespace WebCore {
#if !COMPILER(MSVC) #if !COMPILER(MSVC) || COMPILER(CLANG)
// FIXME: Use C++11 strong enums to avoid static data member with initializer definition problems.
const RGBA32 Color::black; const RGBA32 Color::black;
const RGBA32 Color::white; const RGBA32 Color::white;
const RGBA32 Color::darkGray; const RGBA32 Color::darkGray;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment