summaryrefslogtreecommitdiff
path: root/libffi/include/ffitarget.h
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-01-26 12:06:34 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-01-26 12:06:34 +0100
commit181d8ded82d49d0133d9d6fd1631d9816c970bfa (patch)
treec2791efcee34197c93ed964873c1ff30bf398330 /libffi/include/ffitarget.h
parent28a686ef16077f75afbfa3d315cd268680e11b75 (diff)
Import libffi from PyObjC 1.3.7.
darcs-hash:129bccb59266f997deac9b0353aea2d2d4049f92
Diffstat (limited to 'libffi/include/ffitarget.h')
-rw-r--r--libffi/include/ffitarget.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libffi/include/ffitarget.h b/libffi/include/ffitarget.h
new file mode 100644
index 0000000..61d8c29
--- /dev/null
+++ b/libffi/include/ffitarget.h
@@ -0,0 +1,19 @@
+/*
+ * Dispatch to the right ffitarget file. This file is PyObjC specific, in a
+ * normal build the build environment copies the file to the right location or
+ * sets up the right include flags. We want to do neither because that would
+ * make building fat binaries harder.
+ */
+#if defined(__i386__)
+
+#include "../src/x86/ffitarget.h"
+
+#elif defined(__ppc__)
+
+#include "../src/powerpc/ffitarget.h"
+
+#else
+
+#errror "Unsupported CPU type"
+
+#endif