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 <rkoenderink@gmail.com>
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Ron Koenderink 2021-02-04 16:30:54 -06:00 committed by Markus Armbruster
parent 3af4a32def
commit ca801dec14

View file

@ -4,6 +4,9 @@
*/ */
#include "w32misc.h" #include "w32misc.h"
#ifdef _MSC_VER
#define tzname _tzname
#endif
typedef unsigned char u_char; typedef unsigned char u_char;
typedef unsigned int uint; typedef unsigned int uint;