From 9c113d780a557bbae8382012aee28f5bdaf1e144 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Mon, 11 Apr 2016 14:08:15 +0000 Subject: [PATCH] simplepost.c: fixed compiling with VS before 2015 --- doc/examples/simplepost.c | 5 +++++ 1 file changed, 5 insertions(+) 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 @@ #include #include +#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