diff options
author | Stephan Vedder <vedder@mbits.info> | 2022-05-03 10:29:21 +0300 |
---|---|---|
committer | Stephan Vedder <vedder@mbits.info> | 2022-05-03 10:47:34 +0300 |
commit | 4f330e51e9bb999f7ab6deaa6457cc9801f198a6 (patch) | |
tree | cc6de80788afe25d13033b595c0928f0c5341c7c | |
parent | e6ff287c02af3fb479f2a50f936a01733bf5d806 (diff) |
Improve unix detection
-rw-r--r-- | Source/Compat/platform.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Compat/platform.h b/Source/Compat/platform.h index aeeb1a73..98ffc178 100644 --- a/Source/Compat/platform.h +++ b/Source/Compat/platform.h @@ -30,21 +30,21 @@ #endif // Check windows -#if defined _WIN32 || defined _WIN64 +#if defined(_WIN32) || defined(_WIN64) #define PLATFORM_WINDOWS 1 #endif // Check unix -#if defined __unix__ || defined __APPLE__ +#if defined(unix) || defined(__unix__) || defined(__unix) || defined(__APPLE__) #define PLATFORM_UNIX 1 #endif // Check Linux -#if defined linux || defined __linux +#if defined(linux) || defined(__linux) #define PLATFORM_LINUX 1 #endif // Check macos -#if defined __APPLE__ +#if defined(__APPLE__) #define PLATFORM_MACOSX 1 #endif
\ No newline at end of file |