diff --git a/src/backend/common/Workers.cpp b/src/backend/common/Workers.cpp index 6a4cf0ca..ae09f15b 100644 --- a/src/backend/common/Workers.cpp +++ b/src/backend/common/Workers.cpp @@ -156,7 +156,7 @@ static void getHashrateData(xmrig::IWorker* worker, uint64_t& hashCount, uint64_ template<> -static void getHashrateData(xmrig::IWorker* worker, uint64_t& hashCount, uint64_t&) +void getHashrateData(xmrig::IWorker* worker, uint64_t& hashCount, uint64_t&) { hashCount = worker->rawHashes(); } diff --git a/src/base/net/stratum/Pool.cpp b/src/base/net/stratum/Pool.cpp index ba7b12bf..b09559c2 100644 --- a/src/base/net/stratum/Pool.cpp +++ b/src/base/net/stratum/Pool.cpp @@ -53,6 +53,11 @@ #include "base/net/stratum/NullClient.h" +#ifdef _MSC_VER +# define strcasecmp _stricmp +#endif + + namespace xmrig { @@ -131,10 +136,10 @@ xmrig::Pool::Pool(const rapidjson::Value &object) : const char* benchSize = Json::getString(object, kBenchmark, nullptr); if (benchSize) { - if (stricmp(benchSize, "1M") == 0) { + if (strcasecmp(benchSize, "1M") == 0) { m_benchSize = 1000000; } - else if (stricmp(benchSize, "10M") == 0) { + else if (strcasecmp(benchSize, "10M") == 0) { m_benchSize = 10000000; } }