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:
parent
3af4a32def
commit
ca801dec14
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue