Initial MSVC support.

This commit is contained in:
XMRig 2017-06-12 16:19:07 +03:00
parent a370b8fd30
commit 3df545cfc5
21 changed files with 845 additions and 96 deletions

View file

@ -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;