From 8751fa245bbe3bad5c0d2a0799d57a943faf14ba Mon Sep 17 00:00:00 2001 From: Mark Berrill Date: Mon, 3 Feb 2020 12:41:09 -0500 Subject: [PATCH] Fixing minor issues with some operating systems --- common/Utilities.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/common/Utilities.cpp b/common/Utilities.cpp index 11d2b261..723b34f8 100644 --- a/common/Utilities.cpp +++ b/common/Utilities.cpp @@ -16,6 +16,20 @@ #include +// OS specific includes / definitions +// clang-format off +#if defined( WIN32 ) || defined( _WIN32 ) || defined( WIN64 ) || defined( _WIN64 ) + #define USE_WINDOWS +#elif defined( __APPLE__ ) + #define USE_MAC +#elif defined( __linux ) || defined( __linux__ ) || defined( __unix ) || defined( __posix ) + #define USE_LINUX +#else + #error Unknown OS +#endif +// clang-format on + + // Mutex for Utility functions static std::mutex Utilities_mutex;