MSVC from 2015 up has vsnprintf
authorOndraCo <OndraCo@gmail.com>
Thu, 5 May 2016 23:50:44 +0000 (07:50 +0800)
committerAndy Green <andy@warmcat.com>
Thu, 5 May 2016 23:50:44 +0000 (07:50 +0800)
lib/private-libwebsockets.h

index 9ef1994..cb1976b 100644 (file)
@@ -87,7 +87,7 @@
 #define __func__ __FUNCTION__
 #endif
 
-#if defined(_MSC_VER) || defined(_WIN32_WCE)
+#if (defined(_MSC_VER) && _MSC_VER < 1900) || defined(_WIN32_WCE)
 #define vsnprintf _vsnprintf
 #else
 #ifdef LWS_HAVE__VSNPRINTF