scons: drop unused HAVE_STDINT_H macro
authorEric Engestrom <eric.engestrom@intel.com>
Sun, 28 Oct 2018 17:30:26 +0000 (17:30 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 30 Oct 2018 18:10:59 +0000 (18:10 +0000)
This was required back when MSVC didn't support C99 and was missing this
header, but since MSVC 2013 (or maybe earlier?) this isn't it does and
this code isn't doing anything anymore.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
scons/llvm.py
src/gallium/drivers/svga/SConscript
src/gallium/drivers/svga/svga_hw_reg.h
src/gallium/winsys/svga/drm/SConscript

index a34edfb..a84ad51 100644 (file)
@@ -99,9 +99,6 @@ def generate(env):
             return
 
         env.Prepend(CPPPATH = [os.path.join(llvm_dir, 'include')])
-        env.AppendUnique(CPPDEFINES = [
-            'HAVE_STDINT_H',
-        ])
         env.Prepend(LIBPATH = [os.path.join(llvm_dir, 'lib')])
         # LIBS should match the output of `llvm-config --libs engine mcjit bitwriter x86asmprinter irreader`
         if llvm_version >= distutils.version.LooseVersion('5.0'):
index 9c4806c..efed979 100644 (file)
@@ -8,10 +8,6 @@ if env['suncc']:
        print('warning: not building svga')
        Return()
 
-env.Append(CPPDEFINES = [
-       'HAVE_STDINT_H',
-])
-
 env.Prepend(CPPPATH = [
        'include',
 ])
index 183f4b9..91e50e4 100644 (file)
 
 #include "pipe/p_compiler.h"
 
-#if defined(PIPE_CC_GCC)
-#ifndef HAVE_STDINT_H
-#define HAVE_STDINT_H
-#endif
-#endif
-
 #include "svga_types.h"
 
 #include "svga3d_reg.h"
index 2cb11e6..7398968 100644 (file)
@@ -5,7 +5,6 @@ env = env.Clone()
 env.PkgUseModules('DRM')
 
 env.Append(CPPDEFINES = [
-    'HAVE_STDINT_H',
     '-D_FILE_OFFSET_BITS=64',
 ])