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 a34edfb4b67148f5ac908a54532f6f0575010bd6..a84ad51d97a7d06af1079dbc0ad4ff89524ac91f 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 9c4806c715855b180d1c912fee36425d2421bf44..efed9790b77d78ab85e4c78b7145f82291bb09f1 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 183f4b918e0e72ce064876d21f3a18b6ecbedbdd..91e50e4ee1d08d9e284616a15503075be21e7787 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 2cb11e610df2f867a952e26aa8ff31e097fda015..73989685992e3e0ace3355b017b1df91e81e6544 100644 (file)
@@ -5,7 +5,6 @@ env = env.Clone()
 env.PkgUseModules('DRM')
 
 env.Append(CPPDEFINES = [
-    'HAVE_STDINT_H',
     '-D_FILE_OFFSET_BITS=64',
 ])