summaryrefslogtreecommitdiff
path: root/Objective-C/libffi_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'Objective-C/libffi_support.h')
-rw-r--r--Objective-C/libffi_support.h11
1 files changed, 10 insertions, 1 deletions
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 <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
ffi_type*
objcl_pyobjc_signature_to_ffi_return_type (const char* argtype);