Make it compile under MSVC2017.

This commit is contained in:
WangYi
2020-07-05 00:54:54 +02:00
committed by Unknown
parent 66d3560608
commit 82f23c411d
5 changed files with 22 additions and 8 deletions
+2
View File
@@ -48,7 +48,9 @@
# define ENOTSUP WSAEOPNOTSUPP
# define ECONNABORTED WSAECONNABORTED
# else
#if !defined(_MSC_VER) || (_MSC_VER < 1910) // VS2017 don't like snprintf macro
# define snprintf sprintf_s
#endif
# define strdup _strdup
# endif