From cd578bf5294e5afca8d66e01173c50f0aa86ac3d Mon Sep 17 00:00:00 2001 From: Daniel Cohen Gindi Date: Mon, 1 Sep 2014 11:39:56 +0300 Subject: MSVC: Use _snprintf instead of snprintf In Microsoft's Visual C runtime, the snprintf() function is actually called _snprintf. Let's just #define the former to call the latter. [JES: fixed commit message] Signed-off-by: Johannes Schindelin --- libvncclient/rfbproto.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libvncclient/rfbproto.c') diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c index 9d48b16..0afa3dc 100644 --- a/libvncclient/rfbproto.c +++ b/libvncclient/rfbproto.c @@ -64,6 +64,10 @@ #include "minilzo.h" #include "tls.h" +#ifdef _MSC_VER +# define snprintf _snprintf +#endif + /* * rfbClientLog prints a time-stamped message to the log file (stderr). */ -- cgit v1.2.3