From 7aa2036ab1f6e855d09dd29a19d1722a628a93df Mon Sep 17 00:00:00 2001 From: Giovanbattista Amato Date: Sat, 17 Mar 2018 20:22:28 +0100 Subject: [PATCH] Fixed build errors for VS2015+ --- src/internal.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/internal.hpp b/src/internal.hpp index e059230..b793363 100755 --- a/src/internal.hpp +++ b/src/internal.hpp @@ -45,7 +45,9 @@ #define SHUT_RDWR SD_BOTH typedef int socklen_t; +#if _MSC_VER < 1900 #define snprintf _snprintf +#endif #define strdup _strdup #define stricmp _stricmp #define strdup _strdup