mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
add: [detect-plat] add the Apple platform detection macro
This commit is contained in:
parent
df3890d0c5
commit
6617033a63
@ -16,12 +16,14 @@
|
||||
#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || \
|
||||
defined(__NT__) || defined(__MSYS__)
|
||||
# define LIBIMP_OS_WIN32
|
||||
#elif defined(__linux__) || defined(__linux)
|
||||
# define LIBIMP_OS_LINUX
|
||||
#elif defined(__QNX__) || defined(__QNXNTO__)
|
||||
# define LIBIMP_OS_QNX
|
||||
#elif defined(__APPLE__)
|
||||
# define LIBIMP_OS_APPLE
|
||||
#elif defined(ANDROID) || defined(__ANDROID__)
|
||||
# define LIBIMP_OS_ANDROID
|
||||
#elif defined(__linux__) || defined(__linux)
|
||||
# define LIBIMP_OS_LINUX
|
||||
#else
|
||||
# error "This OS is unsupported."
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user