Removed Boost.Predef since it's not available in Boost 1.54
This commit is contained in:
parent
d4b86357cf
commit
261a768e0d
|
@ -1,6 +1,5 @@
|
||||||
#include <boost/filesystem/operations.hpp>
|
#include <boost/filesystem/operations.hpp>
|
||||||
#include <boost/filesystem/path.hpp>
|
#include <boost/filesystem/path.hpp>
|
||||||
#include <boost/predef.h>
|
|
||||||
#include <format.h>
|
#include <format.h>
|
||||||
#include <boost/uuid/uuid.hpp>
|
#include <boost/uuid/uuid.hpp>
|
||||||
#include <boost/uuid/uuid_generators.hpp>
|
#include <boost/uuid/uuid_generators.hpp>
|
||||||
|
@ -47,7 +46,7 @@ path getTempFilePath() {
|
||||||
|
|
||||||
std::tm getLocalTime(const time_t& time) {
|
std::tm getLocalTime(const time_t& time) {
|
||||||
tm timeInfo;
|
tm timeInfo;
|
||||||
#if (BOOST_OS_UNIX || BOOST_OS_MACOS)
|
#if (__unix || __linux || __APPLE__)
|
||||||
localtime_r(&time, &timeInfo);
|
localtime_r(&time, &timeInfo);
|
||||||
#else
|
#else
|
||||||
localtime_s(&timeInfo, &time);
|
localtime_s(&timeInfo, &time);
|
||||||
|
@ -57,7 +56,7 @@ std::tm getLocalTime(const time_t& time) {
|
||||||
|
|
||||||
std::string errorNumberToString(int errorNumber) {
|
std::string errorNumberToString(int errorNumber) {
|
||||||
char message[256];
|
char message[256];
|
||||||
#if (BOOST_OS_UNIX || BOOST_OS_MACOS)
|
#if (__unix || __linux || __APPLE__)
|
||||||
strerror_r(errorNumber, message, sizeof message);
|
strerror_r(errorNumber, message, sizeof message);
|
||||||
#else
|
#else
|
||||||
strerror_s(message, sizeof message, errorNumber);
|
strerror_s(message, sizeof message, errorNumber);
|
||||||
|
|
Loading…
Reference in New Issue