/Modules/_ctypes/libffi/src/darwin/ffitarget.h
http://unladen-swallow.googlecode.com/ · C Header · 25 lines · 13 code · 6 blank · 6 comment · 0 complexity · 86c8faa0c038d045081d14067fe2c022 MD5 · raw file
- /*
- * This file is for MacOSX only. Dispatch to the right architecture include
- * file based on the current archictecture (instead of relying on a symlink
- * created by configure). This makes is possible to build a univeral binary
- * of ctypes in one go.
- */
- #if defined(__i386__)
- #ifndef X86_DARWIN
- #define X86_DARWIN
- #endif
- #undef POWERPC_DARWIN
- #include "../src/x86/ffitarget.h"
- #elif defined(__ppc__)
- #ifndef POWERPC_DARWIN
- #define POWERPC_DARWIN
- #endif
- #undef X86_DARWIN
- #include "../src/powerpc/ffitarget.h"
- #endif