From 346a27f7b19ab8409842108635eacbcafc966787 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Thu, 1 Sep 2022 08:16:56 -0400 Subject: [PATCH] Detect UNIX via either __unix__ or __unix --- src/c4/platform.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c4/platform.hpp b/src/c4/platform.hpp index 94372a9c..8f9a61f0 100644 --- a/src/c4/platform.hpp +++ b/src/c4/platform.hpp @@ -26,7 +26,7 @@ #elif defined(__linux__) || defined(__linux) # define C4_UNIX # define C4_LINUX -#elif defined(__unix) +#elif defined(__unix__) || defined(__unix) # define C4_UNIX #elif defined(__arm__) || defined(__aarch64__) # define C4_ARM @@ -36,7 +36,7 @@ # error "unknown platform" #endif -#if defined(__posix) || defined(__unix__) || defined(C4_LINUX) +#if defined(__posix) || defined(C4_UNIX) || defined(C4_LINUX) # define C4_POSIX #endif