Fixed compile errors in Linux

This commit is contained in:
SChernykh 2020-10-14 21:03:21 +02:00
parent 2ecece7b3d
commit 144f9c4409
2 changed files with 8 additions and 3 deletions

View file

@ -156,7 +156,7 @@ static void getHashrateData(xmrig::IWorker* worker, uint64_t& hashCount, uint64_
template<> template<>
static void getHashrateData<xmrig::CpuLaunchData>(xmrig::IWorker* worker, uint64_t& hashCount, uint64_t&) void getHashrateData<xmrig::CpuLaunchData>(xmrig::IWorker* worker, uint64_t& hashCount, uint64_t&)
{ {
hashCount = worker->rawHashes(); hashCount = worker->rawHashes();
} }

View file

@ -53,6 +53,11 @@
#include "base/net/stratum/NullClient.h" #include "base/net/stratum/NullClient.h"
#ifdef _MSC_VER
# define strcasecmp _stricmp
#endif
namespace xmrig { namespace xmrig {
@ -131,10 +136,10 @@ xmrig::Pool::Pool(const rapidjson::Value &object) :
const char* benchSize = Json::getString(object, kBenchmark, nullptr); const char* benchSize = Json::getString(object, kBenchmark, nullptr);
if (benchSize) { if (benchSize) {
if (stricmp(benchSize, "1M") == 0) { if (strcasecmp(benchSize, "1M") == 0) {
m_benchSize = 1000000; m_benchSize = 1000000;
} }
else if (stricmp(benchSize, "10M") == 0) { else if (strcasecmp(benchSize, "10M") == 0) {
m_benchSize = 10000000; m_benchSize = 10000000;
} }
} }