Skip to content

Commit

Permalink
Detect UNIX via either __unix__ or __unix
Browse files Browse the repository at this point in the history
  • Loading branch information
musicinmybrain committed Sep 1, 2022
1 parent f36cca5 commit 346a27f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/c4/platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 346a27f

Please sign in to comment.