diff --git a/src/utility/OsDetection.h b/src/utility/OsDetection.h index 1969a6de7..37be3f0e7 100644 --- a/src/utility/OsDetection.h +++ b/src/utility/OsDetection.h @@ -4,10 +4,12 @@ #if defined __linux__ || defined __linux # define LINUX # include +# include #include // Required by ErrorHandling.h #include // Required by ErrorHandling.h #include // Required by storm.cpp, Memory Usage #include // Required by storm.cpp, Memory Usage +# define GetCurrentDir getcwd #elif defined TARGET_OS_MAC || defined __apple__ || defined __APPLE__ # define MACOSX # define _DARWIN_USE_64_BIT_INODE @@ -17,6 +19,7 @@ # include // Required by ErrorHandling.h # include // Required by storm.cpp, Memory Usage # include // Required by storm.cpp, Memory Usage +# define GetCurrentDir getcwd #elif defined _WIN32 || defined _WIN64 # define WINDOWS # ifndef NOMINMAX @@ -28,8 +31,10 @@ # include # include # include +# include # define strncpy strncpy_s # define sscanf sscanf_s +# define GetCurrentDir _getcwd // This disables Warning C4250 - Diamond Inheritance Dominance #pragma warning(disable:4250)