From a5b1c983f0ca8d8040d7e85a540df66510918e75 Mon Sep 17 00:00:00 2001 From: Michal Cieslar Date: Sun, 1 Oct 2023 15:15:05 +0200 Subject: [PATCH] add gmtime msvc macro --- src/modules/date/DateTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/date/DateTest.cpp b/src/modules/date/DateTest.cpp index 13df71ece..5f3b68630 100644 --- a/src/modules/date/DateTest.cpp +++ b/src/modules/date/DateTest.cpp @@ -8,6 +8,10 @@ #include "data/MonthNames.h" #include "data/WeekdayNames.h" +#ifdef _WIN32 +#define timegm _mkgmtime +#endif + using namespace ::testing; using namespace faker;