aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-04-11 14:08:15 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-04-11 14:08:15 +0000
commit9c113d780a557bbae8382012aee28f5bdaf1e144 (patch)
tree8639fb9525130b60567cfc3786e22aa7b0557432
parent3f856f555bc99811ef070a914992e4269d63c6dd (diff)
downloadlibmicrohttpd-9c113d780a557bbae8382012aee28f5bdaf1e144.tar.gz
libmicrohttpd-9c113d780a557bbae8382012aee28f5bdaf1e144.zip
simplepost.c: fixed compiling with VS before 2015
-rw-r--r--doc/examples/simplepost.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/examples/simplepost.c b/doc/examples/simplepost.c
index 248138a0..d167151f 100644
--- a/doc/examples/simplepost.c
+++ b/doc/examples/simplepost.c
@@ -13,6 +13,11 @@
13#include <string.h> 13#include <string.h>
14#include <stdlib.h> 14#include <stdlib.h>
15 15
16#if defined(_MSC_VER) && _MSC_VER+0 <= 1800
17/* Substitution is OK while return value is not used */
18#define snprintf _snprintf
19#endif
20
16#define PORT 8888 21#define PORT 8888
17#define POSTBUFFERSIZE 512 22#define POSTBUFFERSIZE 512
18#define MAXNAMESIZE 20 23#define MAXNAMESIZE 20