diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-04-11 14:08:15 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-04-11 14:08:15 +0000 |
commit | 9c113d780a557bbae8382012aee28f5bdaf1e144 (patch) | |
tree | 8639fb9525130b60567cfc3786e22aa7b0557432 | |
parent | 3f856f555bc99811ef070a914992e4269d63c6dd (diff) |
simplepost.c: fixed compiling with VS before 2015
-rw-r--r-- | doc/examples/simplepost.c | 5 |
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 @@ #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 |