libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 2cf1ffafba7a3cbdcb094d7c8b1aa3b89b851425
parent 9c113d780a557bbae8382012aee28f5bdaf1e144
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Mon, 11 Apr 2016 14:08:18 +0000

largepost.c: fixed compiling by VS

Diffstat:
Mdoc/examples/largepost.c | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c @@ -13,6 +13,17 @@ #include <string.h> #include <microhttpd.h> +#ifdef _MSC_VER +#ifndef strcasecmp +#define strcasecmp(a,b) _stricmp((a),(b)) +#endif /* !strcasecmp */ +#endif /* _MSC_VER */ + +#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 MAXCLIENTS 2