diff options
Diffstat (limited to 'doc/examples/largepost.c')
-rw-r--r-- | doc/examples/largepost.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c index b8762a45..04c7df37 100644 --- a/doc/examples/largepost.c +++ b/doc/examples/largepost.c | |||
@@ -13,6 +13,17 @@ | |||
13 | #include <string.h> | 13 | #include <string.h> |
14 | #include <microhttpd.h> | 14 | #include <microhttpd.h> |
15 | 15 | ||
16 | #ifdef _MSC_VER | ||
17 | #ifndef strcasecmp | ||
18 | #define strcasecmp(a,b) _stricmp((a),(b)) | ||
19 | #endif /* !strcasecmp */ | ||
20 | #endif /* _MSC_VER */ | ||
21 | |||
22 | #if defined(_MSC_VER) && _MSC_VER+0 <= 1800 | ||
23 | /* Substitution is OK while return value is not used */ | ||
24 | #define snprintf _snprintf | ||
25 | #endif | ||
26 | |||
16 | #define PORT 8888 | 27 | #define PORT 8888 |
17 | #define POSTBUFFERSIZE 512 | 28 | #define POSTBUFFERSIZE 512 |
18 | #define MAXCLIENTS 2 | 29 | #define MAXCLIENTS 2 |