aboutsummaryrefslogtreecommitdiffstats
path: root/include/crow/http_server.h
diff options
context:
space:
mode:
authorMark Meredith <mark.meredith@netl.doe.gov>2017-12-24 12:38:52 -0500
committerMark Meredith <mark.meredith@netl.doe.gov>2017-12-24 12:38:52 -0500
commit6974d3fcf986b2e2246827fa1fc68f687dd9976d (patch)
treefcabafa5d0a17cb9f5185447e08758a7922bd91e /include/crow/http_server.h
parent7f3f72441c242836d00ab2109a83baef89c08aaa (diff)
downloadcrow-6974d3fcf986b2e2246827fa1fc68f687dd9976d.tar.gz
crow-6974d3fcf986b2e2246827fa1fc68f687dd9976d.zip
Use gmtime_s on MinGW
Diffstat (limited to 'include/crow/http_server.h')
-rw-r--r--include/crow/http_server.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crow/http_server.h b/include/crow/http_server.h
index 6aa070e..548ea7a 100644
--- a/include/crow/http_server.h
+++ b/include/crow/http_server.h
@@ -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);