diff options
author | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-01-27 12:46:11 +0100 |
---|---|---|
committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-01-27 12:46:11 +0100 |
commit | d382b23ee73dd993e944bd4fad9d190bc2e6f849 (patch) | |
tree | 9cbdbf4f31d13dc2def8dec81153f74ec4580e99 /Objective-C/libobjcl.h | |
parent | a93c3679f769423c69fca20fab3bb4ade7207cc1 (diff) |
Do not build our own libffi if we can find one installed on the system.
darcs-hash:98186d9dca2682cb70a25403ee7415dcbd28249c
Diffstat (limited to 'Objective-C/libobjcl.h')
-rw-r--r-- | Objective-C/libobjcl.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Objective-C/libobjcl.h b/Objective-C/libobjcl.h index 8c557a2..e5a70f1 100644 --- a/Objective-C/libobjcl.h +++ b/Objective-C/libobjcl.h @@ -20,10 +20,18 @@ #import "Foundation/Foundation.h" #include <objc/objc-api.h> +#include "../config.h" + #ifdef USE_LIBFFI +#ifdef HAVE_FFI_H +#include <ffi.h> +#elif HAVE_FFI_FFI_H +#include <ffi/ffi.h> +#else +/* We are using our own build of libffi. */ #include <ffi.h> #endif - +#endif extern NSException *objcl_oom_exception; |