summaryrefslogtreecommitdiffstats
path: root/libvncserver/stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncserver/stats.c')
-rw-r--r--libvncserver/stats.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvncserver/stats.c b/libvncserver/stats.c
index 39de1c6..b99da01 100644
--- a/libvncserver/stats.c
+++ b/libvncserver/stats.c
@@ -26,6 +26,10 @@
#include <rfb/rfb.h>
+#ifdef _MSC_VER
+#define snprintf _snprintf /* Missing in MSVC */
+#endif
+
char *messageNameServer2Client(uint32_t type, char *buf, int len);
char *messageNameClient2Server(uint32_t type, char *buf, int len);
char *encodingName(uint32_t enc, char *buf, int len);
OpenPOWER on IntegriCloud