windows: _snprintf_s
https://github.com/warmcat/libwebsockets/issues/859
This commit is contained in:
parent
d1dda25c6d
commit
4ae029c3a1
1 changed files with 4 additions and 0 deletions
|
@ -93,6 +93,10 @@ struct sockaddr_in;
|
|||
#define __func__ __FUNCTION__
|
||||
#endif
|
||||
|
||||
#if !defined(__MINGW32__) &&(!defined(_MSC_VER) || _MSC_VER < 1900) && !defined(snprintf)
|
||||
#define snprintf(buf,len, format,...) _snprintf_s(buf, len,len, format, __VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#else /* NOT WIN32 */
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue