diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-01-10 10:36:35 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-01-10 10:39:29 +0000 |
commit | dc6bcc92ee78e09bb1b5baec84e229817dfed7f4 (patch) | |
tree | a0037a50148c97a4429923a785bd8c10a58e32bc /scons | |
parent | 0b7b76fb16adface352e2926c8ed476f4f9a9b82 (diff) | |
download | external_mesa3d-dc6bcc92ee78e09bb1b5baec84e229817dfed7f4.zip external_mesa3d-dc6bcc92ee78e09bb1b5baec84e229817dfed7f4.tar.gz external_mesa3d-dc6bcc92ee78e09bb1b5baec84e229817dfed7f4.tar.bz2 |
gallium: Provide alternative stdint.h and stdbool.h C99 headers, instead of ad-hoc definitions.
Everybody is using the C99's integer types. Everybody except Microsoft,
which in turns means everybody is including their own definitions of C99
integer types for MSVC, causing duplicate definitions when linking two
projects. This is the case of building Gallium and LLVM with MSVC.
Shipping alternative stdint.h and stdbool.h headers for MSVC allows us
to share a single definition. It also removes clutter from the Gallium
headers.
Diffstat (limited to 'scons')
-rw-r--r-- | scons/llvm.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scons/llvm.py b/scons/llvm.py index 7b26650..5b9c82f 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -65,6 +65,7 @@ def generate(env): env.AppendUnique(CPPDEFINES = [ '__STDC_LIMIT_MACROS', '__STDC_CONSTANT_MACROS', + 'HAVE_STDINT_H', ]) env.Prepend(LIBPATH = [os.path.join(llvm_dir, 'lib')]) env.Prepend(LIBS = [ |