From c06ea5c7d7484d3978d2626f19741e3ecb6c0acb Mon Sep 17 00:00:00 2001 From: Meir Yanovich Date: Fri, 8 Apr 2016 16:07:46 +0800 Subject: [PATCH] windows snprintf is _snprintf https://github.com/warmcat/libwebsockets/issues/411#issuecomment-207290650 --- lib/libwebsockets.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 8f05b34..1484739 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -146,6 +146,8 @@ struct sockaddr_in; #define LWS_INVALID_FILE INVALID_HANDLE_VALUE #define LWS_O_RDONLY _O_RDONLY +#define snprintf _snprintf + #else /* NOT WIN32 */ #include -- 2.7.4