From a35a19a6ea7248d98282f87244138299fa130c85 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 14 Mar 2013 17:40:14 +0000 Subject: 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 --- scons/gallium.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scons') diff --git a/scons/gallium.py b/scons/gallium.py index 4b51b6e7cb..4d3de82d59 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'] -- cgit v1.2.3