/Modules/_ctypes/libffi/src/darwin/ffitarget.h
C++ Header | 25 lines | 13 code | 6 blank | 6 comment | 0 complexity | 86c8faa0c038d045081d14067fe2c022 MD5 | raw file
1/* 2 * This file is for MacOSX only. Dispatch to the right architecture include 3 * file based on the current archictecture (instead of relying on a symlink 4 * created by configure). This makes is possible to build a univeral binary 5 * of ctypes in one go. 6 */ 7#if defined(__i386__) 8 9#ifndef X86_DARWIN 10#define X86_DARWIN 11#endif 12#undef POWERPC_DARWIN 13 14#include "../src/x86/ffitarget.h" 15 16#elif defined(__ppc__) 17 18#ifndef POWERPC_DARWIN 19#define POWERPC_DARWIN 20#endif 21#undef X86_DARWIN 22 23#include "../src/powerpc/ffitarget.h" 24 25#endif