Commit cd578bf5 authored by Daniel Cohen Gindi's avatar Daniel Cohen Gindi Committed by Johannes Schindelin

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: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
parent 8175f428
......@@ -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).
*/
......
......@@ -57,6 +57,10 @@
#endif
#include "tls.h"
#ifdef _MSC_VER
# define snprintf _snprintf
#endif
void PrintInHex(char *buf, int len);
rfbBool errorMessageOnReadFailure = TRUE;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment