commit 9c113d780a557bbae8382012aee28f5bdaf1e144
parent 3f856f555bc99811ef070a914992e4269d63c6dd
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Mon, 11 Apr 2016 14:08:15 +0000
simplepost.c: fixed compiling with VS before 2015
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/doc/examples/simplepost.c b/doc/examples/simplepost.c
@@ -13,6 +13,11 @@
#include <string.h>
#include <stdlib.h>
+#if defined(_MSC_VER) && _MSC_VER+0 <= 1800
+/* Substitution is OK while return value is not used */
+#define snprintf _snprintf
+#endif
+
#define PORT 8888
#define POSTBUFFERSIZE 512
#define MAXNAMESIZE 20