summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-11-08 17:09:37 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-11-14 10:06:00 +0000
commit34930facfe11ef6e322c276295ddf884d36de11c (patch)
treec7f5d14e3812380dbbc230d23fbda380e09a93cd /src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
parentb04d19da104729ef0d72981ba66f4d9c9d9f9509 (diff)
gallivm: Include stddef.h before the LLVM C++ headers.
Necessary with build against LLVM 2.6, with recent gcc, as LLVM headers depend on ptrdiff_t but don't properly include stddef.h
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_misc.cpp')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_misc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
index 85fabc574b2..222241a140a 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -34,6 +34,8 @@
#define __STDC_CONSTANT_MACROS
#endif
+#include <stddef.h>
+
#include <llvm-c/Core.h>
#include <llvm-c/ExecutionEngine.h>
#include <llvm/Target/TargetOptions.h>