mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-25 13:25:37 +00:00
Fixed catch2 compiling under mingw.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user