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 <johannes.schindelin@gmx.de>
pull/1/head
Daniel Cohen Gindi 9 years ago committed by Johannes Schindelin
parent 8175f428dc
commit cd578bf529

@ -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;

Loading…
Cancel
Save