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.
This commit is contained in:
José Fonseca
2010-01-10 10:36:35 +00:00
parent 0b7b76fb16
commit dc6bcc92ee
5 changed files with 173 additions and 34 deletions

View File

@@ -97,6 +97,9 @@ env.Append(CPPPATH = [
'#/src/gallium/drivers',
])
if env['msvc']:
env.Append(CPPPATH = ['#include/c99'])
# Posix
if platform in ('posix', 'linux', 'freebsd', 'darwin'):