mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 20:19:23 +00:00
Fixed compile errors in Linux
This commit is contained in:
parent
2ecece7b3d
commit
144f9c4409
2 changed files with 8 additions and 3 deletions
|
@ -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…
Reference in a new issue