gallivm: Include stddef.h before the LLVM C++ headers.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 8 Nov 2011 17:09:37 +0000 (17:09 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 14 Nov 2011 10:06:00 +0000 (10:06 +0000)
Necessary with build against LLVM 2.6, with recent gcc, as LLVM headers
depend on ptrdiff_t but don't properly include stddef.h

src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp

index b685c087370f50ef0ac47b51c669c377e60b23d7..62825a29b999d35e9c304a5a435f4aab936d9daa 100644 (file)
@@ -25,6 +25,8 @@
  *
  **************************************************************************/
 
+#include <stddef.h>
+
 #include <llvm-c/Core.h>
 #include <llvm/Target/TargetMachine.h>
 #include <llvm/Target/TargetInstrInfo.h>
index 85fabc574b22be88ce0303ef860e6e94e7997724..222241a140a20376e4402114c870ec61a84cb443 100644 (file)
@@ -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>