Skip to content

Commit

Permalink
Attempted Windows build fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
callumbirks committed Jan 4, 2024
1 parent 79f3105 commit a469b72
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Fleece/Support/ParseDate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,14 @@

#ifdef WIN32
# include <Windows.h>
# define gmtime_r(TIME, BUF) gmtime_s(BUF, TIME)
# define localtime_r(TIME, BUF) localtime_s(BUF, TIME)
tm* gmtime_r(time_t time, tm* buf) {
gmtime_s(buf, time);
return buf;
}
tm* localtime_r(time_t time, tm* buf) {
localtime_s(buf, time);
return buf;
}
#endif

using namespace std;
Expand Down

0 comments on commit a469b72

Please sign in to comment.