ffi.h 792 B

123456789101112131415161718192021
  1. /* Include the correct ffi.h automatically. This helps us create prefixes
  2. * with multi-lib Linux and OSX/iOS universal builds. To avoid listing all
  3. * possible architectures here, we try the configured target arch first and then
  4. * include the most common multilib/universal setups in the #elif ladder */
  5. #ifdef __x86_64__
  6. #include "ffi-x86_64.h"
  7. #elif defined(__i386__) || defined(_M_IX86)
  8. #include "ffi-x86.h"
  9. #elif defined(__x86_64__) || defined(_M_X64)
  10. #include "ffi-x86_64.h"
  11. #elif defined(__arm__) || defined(_M_ARM)
  12. #include "ffi-arm.h"
  13. #elif defined(__aarch64__) || defined(_M_ARM64)
  14. #include "ffi-aarch64.h"
  15. #elif defined(__powerpc__) || defined(_M_PPC)
  16. #include "ffi-powerpc.h"
  17. #elif defined(__powerpc64__)
  18. #include "ffi-powerpc64.h"
  19. #else
  20. #error "Unsupported Architecture"
  21. #endif