Initial MSVC support.
This commit is contained in:
parent
a370b8fd30
commit
3df545cfc5
21 changed files with 845 additions and 96 deletions
|
@ -29,6 +29,11 @@
|
|||
#include "net/Url.h"
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# define strncasecmp(x,y,z) _strnicmp(x,y,z)
|
||||
#endif
|
||||
|
||||
|
||||
Url::Url() :
|
||||
m_host(nullptr),
|
||||
m_port(3333)
|
||||
|
@ -66,7 +71,7 @@ Url::Url(const char *url) :
|
|||
return;
|
||||
}
|
||||
|
||||
char *port = strchr(base, ':');
|
||||
const char *port = strchr(base, ':');
|
||||
if (!port) {
|
||||
m_host = strdup(base);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue