diff options
| author | Alexander Shaduri | 2021-03-17 13:32:45 +0400 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-03-23 23:46:04 +0100 |
| commit | 2c269eb6332bc1dd29047851ae1efc3cd4c260d2 (patch) | |
| tree | 6cb7b4589aa7d48766891a5f8650fcbbc5010549 /src/catch2 | |
| parent | 4b5812e932051cf3477db540291b81fdfe7d7dfd (diff) | |
| download | catch3-2c269eb6332bc1dd29047851ae1efc3cd4c260d2.tar.gz | |
Fixed compilation under MinGW - use gmtime_s() instead of gmtime_r().
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/reporters/catch_reporter_junit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/reporters/catch_reporter_junit.cpp b/src/catch2/reporters/catch_reporter_junit.cpp index cff5d7d7..3b788f46 100644 --- a/src/catch2/reporters/catch_reporter_junit.cpp +++ b/src/catch2/reporters/catch_reporter_junit.cpp @@ -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); |