/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

  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. #ifndef X86_DARWIN
  9. #define X86_DARWIN
  10. #endif
  11. #undef POWERPC_DARWIN
  12. #include "../src/x86/ffitarget.h"
  13. #elif defined(__ppc__)
  14. #ifndef POWERPC_DARWIN
  15. #define POWERPC_DARWIN
  16. #endif
  17. #undef X86_DARWIN
  18. #include "../src/powerpc/ffitarget.h"
  19. #endif