add: [detect-plat] add the Apple platform detection macro

This commit is contained in:
mutouyun 2022-08-07 15:20:26 +08:00
parent df3890d0c5
commit 6617033a63

View File

@ -16,12 +16,14 @@
#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || \ #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || \
defined(__NT__) || defined(__MSYS__) defined(__NT__) || defined(__MSYS__)
# define LIBIMP_OS_WIN32 # define LIBIMP_OS_WIN32
#elif defined(__linux__) || defined(__linux)
# define LIBIMP_OS_LINUX
#elif defined(__QNX__) || defined(__QNXNTO__) #elif defined(__QNX__) || defined(__QNXNTO__)
# define LIBIMP_OS_QNX # define LIBIMP_OS_QNX
#elif defined(__APPLE__)
# define LIBIMP_OS_APPLE
#elif defined(ANDROID) || defined(__ANDROID__) #elif defined(ANDROID) || defined(__ANDROID__)
# define LIBIMP_OS_ANDROID # define LIBIMP_OS_ANDROID
#elif defined(__linux__) || defined(__linux)
# define LIBIMP_OS_LINUX
#else #else
# error "This OS is unsupported." # error "This OS is unsupported."
#endif #endif