diff options
Diffstat (limited to 'scons')
-rwxr-xr-x | scons/gallium.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index ef6df1a..dd5ca56 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -589,7 +589,13 @@ def generate(env): 'HAVE___BUILTIN_EXPECT', 'HAVE___BUILTIN_FFS', 'HAVE___BUILTIN_FFSLL', + 'HAVE_FUNC_ATTRIBUTE_FLATTEN', ] + if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('3'): + cppdefines += [ + 'HAVE_FUNC_ATTRIBUTE_FORMAT', + 'HAVE_FUNC_ATTRIBUTE_PACKED', + ] if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('3.4'): cppdefines += [ 'HAVE___BUILTIN_CTZ', |