diff options
| author | Matthias Benkard <mulk@minimulk.mst-plus> | 2008-10-02 12:28:43 +0200 |
|---|---|---|
| committer | Matthias Benkard <mulk@minimulk.mst-plus> | 2008-10-02 12:28:43 +0200 |
| commit | 446269ef596e30365eb01e930d525b845be7b9bf (patch) | |
| tree | 6375ab6d45179b1a11f3240acd033a8e2c5a6cd6 | |
| parent | a0dae1a2756c0f9a84c3a258f3a4a05e63afc1c6 (diff) | |
LLVM compiler: Restore capability of building on Mac OS X 10.4.
| -rw-r--r-- | MLKLLVMCompiler.mm | 4 |
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; |
