From d382b23ee73dd993e944bd4fad9d190bc2e6f849 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sun, 27 Jan 2008 12:46:11 +0100 Subject: Do not build our own libffi if we can find one installed on the system. darcs-hash:98186d9dca2682cb70a25403ee7415dcbd28249c --- Objective-C/libffi_support.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Objective-C/libffi_support.h') diff --git a/Objective-C/libffi_support.h b/Objective-C/libffi_support.h index cdf71c0..ca04c6b 100644 --- a/Objective-C/libffi_support.h +++ b/Objective-C/libffi_support.h @@ -1,7 +1,16 @@ #ifndef PyObjC_FFI_SUPPORT_H #define PyObjC_FFI_SUPPORT_H -#include "ffi.h" +#ifdef USE_LIBFFI +#ifdef HAVE_FFI_H +#include +#elif HAVE_FFI_FFI_H +#include +#else +/* We are using our own build of libffi. */ +#include +#endif +#endif ffi_type* objcl_pyobjc_signature_to_ffi_return_type (const char* argtype); -- cgit v1.2.3