Fixed catch2 compiling under mingw.

This commit is contained in:
Alexander Shaduri
2021-03-17 14:24:52 +04:00
parent b1150d8e86
commit 3f0b7c1681
@@ -26,7 +26,7 @@ namespace Catch {
std::time(&rawtime);
std::tm timeInfo = {};
#ifdef _MSC_VER
#if defined _MSC_VER || defined __MINGW32__
gmtime_s(&timeInfo, &rawtime);
#else
gmtime_r(&rawtime, &timeInfo);