test1515: fix compilation with msvc
authorMaks Naumov <maksqwe1@ukr.net>
Tue, 18 Feb 2014 13:45:12 +0000 (15:45 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 19 Feb 2014 12:50:17 +0000 (13:50 +0100)
... or any other systems lacking a native snprintf

tests/libtest/lib1515.c

index d5c8f7d..a786add 100644 (file)
@@ -39,6 +39,9 @@
 #define sleep(s) Sleep(s * 1000)
 #endif
 
+#define _MPRINTF_REPLACE
+#include "mprintf.h"
+
 static int debug_callback(CURL *curl, curl_infotype info, char *msg, size_t len, void *ptr)
 {
   (void)curl;