summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Benkard <mulk@minimulk.mst-plus>2008-10-02 12:28:43 +0200
committerMatthias Benkard <mulk@minimulk.mst-plus>2008-10-02 12:28:43 +0200
commit446269ef596e30365eb01e930d525b845be7b9bf (patch)
tree6375ab6d45179b1a11f3240acd033a8e2c5a6cd6
parenta0dae1a2756c0f9a84c3a258f3a4a05e63afc1c6 (diff)
LLVM compiler: Restore capability of building on Mac OS X 10.4.
-rw-r--r--MLKLLVMCompiler.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm
index 5428927..da4710d 100644
--- a/MLKLLVMCompiler.mm
+++ b/MLKLLVMCompiler.mm
@@ -57,8 +57,10 @@
#include <stddef.h>
#ifdef MACOSX
-#include <objc/runtime.h>
#include <objc/objc-api.h>
+#if defined(OBJC_API_VERSION) && OBJC_API_VERSION >= 2
+#include <objc/runtime.h>
+#endif
#endif
using namespace llvm;