From ca801dec141edf924ee2020dbbe26966f2f88e2e Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Thu, 4 Feb 2021 16:30:54 -0600 Subject: [PATCH] w32: Work around a Visual Studio deprecation warning Visual Studio warns on use of certain POSIX functions. Compiler option /D_CRT_NONSTDC_NO_WARNINGS suppresses this, except for variable tzname. Work around with a macro. Signed-off-by: Ron Koenderink Signed-off-by: Markus Armbruster --- src/lib/w32/strptime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/w32/strptime.c b/src/lib/w32/strptime.c index 123f4c7b3..04b83eeb9 100644 --- a/src/lib/w32/strptime.c +++ b/src/lib/w32/strptime.c @@ -4,6 +4,9 @@ */ #include "w32misc.h" +#ifdef _MSC_VER +#define tzname _tzname +#endif typedef unsigned char u_char; typedef unsigned int uint; -- 2.43.0