From df8fdb277b6fa88161c24407a8afdb91df33e058 Mon Sep 17 00:00:00 2001 From: David Wedderwille Date: Mon, 30 Sep 2019 14:19:23 +0200 Subject: [PATCH] fixes compile error with MinGW. --- utility.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility.hpp b/utility.hpp index 2e20f93..2c0e7cf 100644 --- a/utility.hpp +++ b/utility.hpp @@ -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;