Files
third_party_libffi/include/ffi.h
T
magnificGH 8487de2514 change static file mode to 644
Signed-off-by: magnificGH <guohui36@huawei.com>
2022-03-14 16:30:51 +08:00

22 lines
786 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"
#else
#error "Unsupported Architecture"
#endif