Permalink
Browse files

MSVC needs snprintf to be _snprintf

  • Loading branch information...
haakonnessjoen committed May 7, 2014
1 parent 92d0012 commit 735ce5d291290e0941dde7bd458d5bab3b6a38e9
Showing with 1 addition and 0 deletions.
  1. +1 −0 librouteros.c
View
@@ -41,6 +41,7 @@ static void ros_remove_event(struct ros_connection *conn, int index);
static int debug = 0;
#ifdef _WIN32
+#define snprintf _snprintf
static int _read (SOCKET socket, char *data, int len) {
int rlen = recv(socket, data, len, 0);
if (rlen == SOCKET_ERROR) return -1;

0 comments on commit 735ce5d

Please sign in to comment.