fixes compile error with MinGW.

This commit is contained in:
David Wedderwille 2019-09-30 14:19:23 +02:00
commit df8fdb277b

View file

@ -348,7 +348,7 @@ namespace SimpleWeb {
auto time = std::chrono::system_clock::to_time_t(time_point);
tm tm;
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW32__)
if(gmtime_s(&tm, &time) != 0)
return {};
auto gmtime = &tm;