From 6974d3fcf986b2e2246827fa1fc68f687dd9976d Mon Sep 17 00:00:00 2001 From: Mark Meredith Date: Sun, 24 Dec 2017 12:38:52 -0500 Subject: Use gmtime_s on MinGW --- include/crow/http_server.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/crow/http_server.h') 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); -- cgit v1.2.3-54-g00ecf