diff options
Diffstat (limited to 'doc/examples/simplepost.c')
-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 @@ | |||
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 |