/Modules/_ctypes/libffi_osx/include/ffitarget.h

http://unladen-swallow.googlecode.com/ · C++ Header · 13 lines · 7 code · 1 blank · 5 comment · 2 complexity · c2ff1a5e278a571b248a63b8bb2cea13 MD5 · raw file

  1. /* Dispatch to the right ffitarget file. This file is PyObjC specific; in a
  2. normal build, the build environment copies the file to the right location or
  3. sets up the right include flags. We want to do neither because that would
  4. make building fat binaries harder.
  5. */
  6. #if defined(__i386__) || defined(__x86_64__)
  7. #include "x86-ffitarget.h"
  8. #elif defined(__ppc__) || defined(__ppc64__)
  9. #include "ppc-ffitarget.h"
  10. #else
  11. #error "Unsupported CPU type"
  12. #endif