summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvncclient/rfbproto.c4
-rw-r--r--libvncclient/sockets.c4
-rw-r--r--libvncclient/tls_openssl.c4
3 files changed, 12 insertions, 0 deletions
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).
*/
diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c
index c97a90f..7ddf1b2 100644
--- a/libvncclient/sockets.c
+++ b/libvncclient/sockets.c
@@ -57,6 +57,10 @@
#endif
#include "tls.h"
+#ifdef _MSC_VER
+# define snprintf _snprintf
+#endif
+
void PrintInHex(char *buf, int len);
rfbBool errorMessageOnReadFailure = TRUE;
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;