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 9ef19940608c5f6439fbe1fdabc1de5fd0b598d5..cb1976be9905c7c304b63d50bd9f29ecad2cee8a 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