From a49991484c11348a2a0843374f0c2836a2a9daf3 Mon Sep 17 00:00:00 2001 From: PBerger Date: Tue, 12 Aug 2014 23:47:05 +0200 Subject: [PATCH] Fixed missing definitions for the current working directory. Former-commit-id: cc991435262f888ece909d3811ce153147049636 --- src/utility/OsDetection.h | 5 +++++ 1 file changed, 5 insertions(+) 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)