Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions include/plog/Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ namespace plog

inline void localtime_s(struct tm* t, const time_t* time)
{
#if defined(_WIN32) && defined(__BORLANDC__)
#if defined(_WIN32) && defined(__BORLANDC__) && __BORLANDC__ > 0x0560
::localtime_s(time, t);
#elif defined(_WIN32) && defined(__BORLANDC__) && __BORLANDC__ <= 0x0560
*t = *::localtime(time);
#elif defined(_WIN32) && defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
*t = *::localtime(time);
#elif defined(_WIN32)
Expand All @@ -99,8 +101,10 @@ namespace plog

inline void gmtime_s(struct tm* t, const time_t* time)
{
#if defined(_WIN32) && defined(__BORLANDC__)
#if defined(_WIN32) && defined(__BORLANDC__) && __BORLANDC__ > 0x0560
::gmtime_s(time, t);
#elif defined(_WIN32) && defined(__BORLANDC__) && __BORLANDC__ <= 0x0560
*t = *::gmtime(time);
#elif defined(_WIN32) && defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
*t = *::gmtime(time);
#elif defined(_WIN32)
Expand Down