Skip to content

Commit

Permalink
compat BUGFIX regression in win timegm support
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Feb 20, 2024
1 parent f4dc3e3 commit a1ecc16
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compat/compat.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,10 @@ struct tm *gmtime_r(const time_t *timep, struct tm *result);
#endif

#ifndef HAVE_TIMEGM
# if defined (_WIN32)
# ifdef _WIN32
# define timegm _mkgmtime
# define HAVE_TIMEGM

# else
time_t timegm(struct tm *tm);
# endif
Expand All @@ -202,7 +204,7 @@ time_t timegm(struct tm *tm);
char *strptime(const char *s, const char *format, struct tm *tm);
#endif

#if defined (_WIN32)
#ifdef _WIN32
# define strtok_r strtok_s
#endif

Expand Down

0 comments on commit a1ecc16

Please sign in to comment.