24 lines
857 B
C
24 lines
857 B
C
/* Include the correct ffi.h automatically. This helps us create prefixes
|
|
* with multi-lib Linux and OSX/iOS universal builds. To avoid listing all
|
|
* possible architectures here, we try the configured target arch first and then
|
|
* include the most common multilib/universal setups in the #elif ladder */
|
|
#ifdef __arm__
|
|
#include "ffi-arm.h"
|
|
#elif defined(__i386__) || defined(_M_IX86)
|
|
#include "ffi-x86.h"
|
|
#elif defined(__x86_64__) || defined(_M_X64)
|
|
#include "ffi-x86_64.h"
|
|
#elif defined(__arm__) || defined(_M_ARM)
|
|
#include "ffi-arm.h"
|
|
#elif defined(__aarch64__) || defined(_M_ARM64)
|
|
#include "ffi-aarch64.h"
|
|
#elif defined(__powerpc__) || defined(_M_PPC)
|
|
#include "ffi-powerpc.h"
|
|
#elif defined(__powerpc64__)
|
|
#include "ffi-powerpc64.h"
|
|
#elif defined (__riscv) && __riscv_xlen == 64
|
|
#include "ffi-riscv64.h"
|
|
#else
|
|
#error "Unsupported Architecture"
|
|
#endif
|