scons: Always define __STDC_LIMIT_MACROS.
authorVinson Lee <vlee@freedesktop.org>
Fri, 14 Aug 2015 22:19:49 +0000 (15:19 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 15 Aug 2015 08:44:33 +0000 (01:44 -0700)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91591
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
scons/gallium.py

index 51b84d7652ba054c80b59ad08a4a80d4ff60eb31..46dbf0ebd0e58e71f131c72ba04ca522d7c3cc54 100755 (executable)
@@ -300,6 +300,7 @@ def generate(env):
 
     # C preprocessor options
     cppdefines = []
+    cppdefines += ['__STDC_LIMIT_MACROS']
     if env['build'] in ('debug', 'checked'):
         cppdefines += ['DEBUG']
     else: