diff options
author | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-01-28 19:17:00 +0100 |
---|---|---|
committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-01-28 19:17:00 +0100 |
commit | 7cea2578637b823e93798e308ab0811c7fd7b7a4 (patch) | |
tree | 0db0eb3e9065528052ef618059ec7da91a44418a /Objective-C/PyObjC/libffi_support.h | |
parent | b44ee368288b98ed5125ccb214e6d665c134be1f (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.h | 21 |
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 */ |