From 261a768e0d0f291c9d9567a753ffc0b03fb008aa Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Thu, 8 Sep 2016 22:29:24 +0200 Subject: [PATCH] Removed Boost.Predef since it's not available in Boost 1.54 --- src/platformTools.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/platformTools.cpp b/src/platformTools.cpp index 581c1d0..6093f42 100644 --- a/src/platformTools.cpp +++ b/src/platformTools.cpp @@ -1,6 +1,5 @@ #include #include -#include #include #include #include @@ -47,7 +46,7 @@ path getTempFilePath() { std::tm getLocalTime(const time_t& time) { tm timeInfo; -#if (BOOST_OS_UNIX || BOOST_OS_MACOS) +#if (__unix || __linux || __APPLE__) localtime_r(&time, &timeInfo); #else localtime_s(&timeInfo, &time); @@ -57,7 +56,7 @@ std::tm getLocalTime(const time_t& time) { std::string errorNumberToString(int errorNumber) { char message[256]; -#if (BOOST_OS_UNIX || BOOST_OS_MACOS) +#if (__unix || __linux || __APPLE__) strerror_r(errorNumber, message, sizeof message); #else strerror_s(message, sizeof message, errorNumber);