From 5b7d38625620ba6ee5394f5daf38e36e631f2abe Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Sat, 20 Oct 2001 04:41:54 +0000 Subject: [PATCH] Win32 compatibility courtesy of Oddsock. svn path=/trunk/httpp/; revision=2188 --- httpp/httpp.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/httpp/httpp.c b/httpp/httpp.c index ba03d38..3c588ef 100644 --- a/httpp/httpp.c +++ b/httpp/httpp.c @@ -11,6 +11,10 @@ #include "avl.h" #include "httpp.h" +#ifdef _WIN32 +#define strcasecmp stricmp +#endif + /* internal functions */ /* misc */ @@ -47,10 +51,11 @@ int httpp_parse(http_parser_t *parser, char *http_data, unsigned long len) char *line[32]; /* limited to 32 lines, should be more than enough */ int i, l, retlen; int lines; - char *req_type; - char *uri; - char *version; - char *name, *value; + char *req_type = NULL; + char *uri = NULL; + char *version = NULL; + char *name = NULL; + char *value = NULL; int whitespace, where; int slen;