|
|
|
|
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
|
#if defined(MS_WIN32) && !defined(MS_WIN64) && defined(_M_IX86) && defined(_MSC_VER) |
|
# include "platform/switch_x86_msvc.h" |
|
#elif defined(MS_WIN64) && defined(_M_X64) && defined(_MSC_VER) || defined(__MINGW64__) |
|
# include "platform/switch_x64_msvc.h" |
|
#elif defined(MS_WIN64) && defined(_M_ARM64) |
|
# include "platform/switch_arm64_msvc.h" |
|
#elif defined(__GNUC__) && defined(__amd64__) && defined(__ILP32__) |
|
# include "platform/switch_x32_unix.h" |
|
#elif defined(__GNUC__) && defined(__amd64__) |
|
# include "platform/switch_amd64_unix.h" |
|
#elif defined(__GNUC__) && defined(__i386__) |
|
# include "platform/switch_x86_unix.h" |
|
#elif defined(__GNUC__) && defined(__powerpc64__) && (defined(__linux__) || defined(__FreeBSD__)) |
|
# include "platform/switch_ppc64_linux.h" |
|
#elif defined(__GNUC__) && defined(__PPC__) && (defined(__linux__) || defined(__FreeBSD__)) |
|
# include "platform/switch_ppc_linux.h" |
|
#elif defined(__GNUC__) && defined(__POWERPC__) && defined(__APPLE__) |
|
# include "platform/switch_ppc_macosx.h" |
|
#elif defined(__GNUC__) && defined(__powerpc64__) && defined(_AIX) |
|
# include "platform/switch_ppc64_aix.h" |
|
#elif defined(__GNUC__) && defined(_ARCH_PPC) && defined(_AIX) |
|
# include "platform/switch_ppc_aix.h" |
|
#elif defined(__GNUC__) && defined(__powerpc__) && defined(__NetBSD__) |
|
#include "platform/switch_ppc_unix.h" |
|
#elif defined(__GNUC__) && defined(sparc) |
|
# include "platform/switch_sparc_sun_gcc.h" |
|
#elif defined(__SUNPRO_C) && defined(sparc) && defined(sun) |
|
# iiclude "platform/switch_sparc_sun_gcc.h" |
|
#elif defined(__SUNPRO_C) && defined(__amd64__) && defined(sun) |
|
# include "platform/switch_amd64_unix.h" |
|
#elif defined(__SUNPRO_C) && defined(__i386__) && defined(sun) |
|
# include "platform/switch_x86_unix.h" |
|
#elif defined(__GNUC__) && defined(__s390__) && defined(__linux__) |
|
# include "platform/switch_s390_unix.h" |
|
#elif defined(__GNUC__) && defined(__s390x__) && defined(__linux__) |
|
# include "platform/switch_s390_unix.h" |
|
#elif defined(__GNUC__) && defined(__arm__) |
|
# ifdef __APPLE__ |
|
# include <TargetConditionals.h> |
|
# endif |
|
# if TARGET_OS_IPHONE |
|
# include "platform/switch_arm32_ios.h" |
|
# else |
|
# include "platform/switch_arm32_gcc.h" |
|
# endif |
|
#elif defined(__GNUC__) && defined(__mips__) && defined(__linux__) |
|
# include "platform/switch_mips_unix.h" |
|
#elif defined(__GNUC__) && defined(__aarch64__) |
|
# include "platform/switch_aarch64_gcc.h" |
|
#elif defined(__GNUC__) && defined(__mc68000__) |
|
# include "platform/switch_m68k_gcc.h" |
|
#elif defined(__GNUC__) && defined(__csky__) |
|
#include "platform/switch_csky_gcc.h" |
|
# elif defined(__GNUC__) && defined(__riscv) |
|
# include "platform/switch_riscv_unix.h" |
|
#elif defined(__GNUC__) && defined(__alpha__) |
|
# include "platform/switch_alpha_unix.h" |
|
#elif defined(MS_WIN32) && defined(__llvm__) && defined(__aarch64__) |
|
# include "platform/switch_aarch64_gcc.h" |
|
#elif defined(__GNUC__) && defined(__loongarch64) && defined(__linux__) |
|
# include "platform/switch_loongarch64_linux.h" |
|
#elif defined(__GNUC__) && defined(__sh__) |
|
# include "platform/switch_sh_gcc.h" |
|
#endif |
|
|
|
#ifdef __cplusplus |
|
}; |
|
#endif |
|
|