diff options
author | José Fonseca <jfonseca@vmware.com> | 2013-03-14 17:40:14 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-03-14 19:01:10 +0000 |
commit | a35a19a6ea7248d98282f87244138299fa130c85 (patch) | |
tree | b8db337205fc6a7bdc8b58b02387523f6ee10f26 /scons/gallium.py | |
parent | 6a3d77e13dbae17000e35ce16023532200e68d09 (diff) |
scons: Define _ALLOW_KEYWORD_MACROS on MSVC builds.
scons/llvm.py defines inline globally to workaround issues with LLVM C
binding headers, so the only way to is to avoid
aggravating xkeycheck.h errors is to set _ALLOW_KEYWORD_MACROS.
This fixes MSVC 2012 build with LLVM.
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'scons/gallium.py')
-rwxr-xr-x | scons/gallium.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index 4b51b6e7cbf..4d3de82d59c 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -289,6 +289,7 @@ def generate(env): '_CRT_SECURE_NO_DEPRECATE', '_SCL_SECURE_NO_WARNINGS', '_SCL_SECURE_NO_DEPRECATE', + '_ALLOW_KEYWORD_MACROS', ] if env['build'] in ('debug', 'checked'): cppdefines += ['_DEBUG'] |