fixes compile error with MinGW.
This commit is contained in:
parent
08a07644ad
commit
df8fdb277b
1 changed files with 1 additions and 1 deletions
|
|
@ -348,7 +348,7 @@ namespace SimpleWeb {
|
||||||
|
|
||||||
auto time = std::chrono::system_clock::to_time_t(time_point);
|
auto time = std::chrono::system_clock::to_time_t(time_point);
|
||||||
tm tm;
|
tm tm;
|
||||||
#ifdef _MSC_VER
|
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||||
if(gmtime_s(&tm, &time) != 0)
|
if(gmtime_s(&tm, &time) != 0)
|
||||||
return {};
|
return {};
|
||||||
auto gmtime = &tm;
|
auto gmtime = &tm;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue