Fixing minor issues with some operating systems

This commit is contained in:
Mark Berrill 2020-02-03 12:41:09 -05:00
parent 0f91767b6c
commit 8751fa245b

View File

@ -16,6 +16,20 @@
#include <mutex> #include <mutex>
// 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 // Mutex for Utility functions
static std::mutex Utilities_mutex; static std::mutex Utilities_mutex;