mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-12-04 14:46:31 -05:00
Win32 compatibility courtesy of Oddsock.
svn path=/trunk/httpp/; revision=2188
This commit is contained in:
parent
a3c3d6f277
commit
5b7d386256
@ -11,6 +11,10 @@
|
|||||||
#include "avl.h"
|
#include "avl.h"
|
||||||
#include "httpp.h"
|
#include "httpp.h"
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define strcasecmp stricmp
|
||||||
|
#endif
|
||||||
|
|
||||||
/* internal functions */
|
/* internal functions */
|
||||||
|
|
||||||
/* misc */
|
/* 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 */
|
char *line[32]; /* limited to 32 lines, should be more than enough */
|
||||||
int i, l, retlen;
|
int i, l, retlen;
|
||||||
int lines;
|
int lines;
|
||||||
char *req_type;
|
char *req_type = NULL;
|
||||||
char *uri;
|
char *uri = NULL;
|
||||||
char *version;
|
char *version = NULL;
|
||||||
char *name, *value;
|
char *name = NULL;
|
||||||
|
char *value = NULL;
|
||||||
int whitespace, where;
|
int whitespace, where;
|
||||||
int slen;
|
int slen;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user