From 6617033a63dbbec9956b027152b08fba3ce18bc5 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sun, 7 Aug 2022 15:20:26 +0800 Subject: [PATCH] add: [detect-plat] add the Apple platform detection macro --- include/libimp/detect_plat.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/libimp/detect_plat.h b/include/libimp/detect_plat.h index 13d5104..687e0d9 100644 --- a/include/libimp/detect_plat.h +++ b/include/libimp/detect_plat.h @@ -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