Skip to content

Commit

Permalink
Merge pull request #274 from mwm126/mingw-gmtime_s
Browse files Browse the repository at this point in the history
Use gmtime_s on MinGW
  • Loading branch information
ipkn authored Dec 27, 2017
2 parents d1a30bf + f4d187a commit 49edf89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/crow/http_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace crow
auto last_time_t = time(0);
tm my_tm;

#ifdef _MSC_VER
#if defined(_MSC_VER) or defined(__MINGW32__)
gmtime_s(&my_tm, &last_time_t);
#else
gmtime_r(&last_time_t, &my_tm);
Expand Down
2 changes: 1 addition & 1 deletion include/crow/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace crow

tm my_tm;

#ifdef _MSC_VER
#if defined(_MSC_VER) or defined(__MINGW32__)
gmtime_s(&my_tm, &t);
#else
gmtime_r(&t, &my_tm);
Expand Down

0 comments on commit 49edf89

Please sign in to comment.