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/tls_openssl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libvncclient/tls_openssl.c') diff --git a/libvncclient/tls_openssl.c b/libvncclient/tls_openssl.c index b7a0911..8af96a4 100644 --- a/libvncclient/tls_openssl.c +++ b/libvncclient/tls_openssl.c @@ -31,6 +31,10 @@ #include "tls.h" +#ifdef _MSC_VER +#define snprintf _snprintf +#endif + static rfbBool rfbTLSInitialized = FALSE; static pthread_mutex_t *mutex_buf = NULL; -- cgit v1.2.1