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
This commit is contained in:
José Fonseca
2011-11-08 17:09:37 +00:00
parent b04d19da10
commit 34930facfe
2 changed files with 4 additions and 0 deletions
@@ -25,6 +25,8 @@
*
**************************************************************************/
#include <stddef.h>
#include <llvm-c/Core.h>
#include <llvm/Target/TargetMachine.h>
#include <llvm/Target/TargetInstrInfo.h>
@@ -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>