summaryrefslogtreecommitdiff
path: root/Objective-C/PyObjC/libffi_support.h
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-01-28 19:17:00 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-01-28 19:17:00 +0100
commit7cea2578637b823e93798e308ab0811c7fd7b7a4 (patch)
tree0db0eb3e9065528052ef618059ec7da91a44418a /Objective-C/PyObjC/libffi_support.h
parentb44ee368288b98ed5125ccb214e6d665c134be1f (diff)
Directory layout: Put code imported from PyObjC into its own directory.
darcs-hash:e3dd1138105e4eece0fbcbc13365eb3a25ffb808
Diffstat (limited to 'Objective-C/PyObjC/libffi_support.h')
-rw-r--r--Objective-C/PyObjC/libffi_support.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/Objective-C/PyObjC/libffi_support.h b/Objective-C/PyObjC/libffi_support.h
new file mode 100644
index 0000000..ca04c6b
--- /dev/null
+++ b/Objective-C/PyObjC/libffi_support.h
@@ -0,0 +1,21 @@
+#ifndef PyObjC_FFI_SUPPORT_H
+#define PyObjC_FFI_SUPPORT_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);
+
+ffi_type*
+objcl_pyobjc_arg_signature_to_ffi_type (const char* argtype);
+
+#endif /* PyObjC_FFI_SUPPORT_H */