Fixed compile errors in Linux
This commit is contained in:
parent
2ecece7b3d
commit
144f9c4409
@ -156,7 +156,7 @@ static void getHashrateData(xmrig::IWorker* worker, uint64_t& hashCount, uint64_
|
||||
|
||||
|
||||
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();
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user