Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Fix condition of #define snprintf _snprintf
Browse files Browse the repository at this point in the history
Use _UCRT instead _MSC_VER
  • Loading branch information
egtra committed Dec 10, 2016
1 parent f2aee35 commit 66013f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion util/telnet-chatd.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# include <winsock2.h>
# include <ws2tcpip.h>

#if !defined(_MSC_VER) || _MSC_VER < 1800
#ifndef _UCRT
# define snprintf _snprintf
#endif

Expand Down
2 changes: 1 addition & 1 deletion util/telnet-proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# include <winsock2.h>
# include <ws2tcpip.h>

#if !defined(_MSC_VER) || _MSC_VER < 1900
#ifndef _UCRT
# define snprintf _snprintf
#endif

Expand Down

0 comments on commit 66013f7

Please sign in to comment.