fix windows compile

- fix build documentation
- fix plugin load methods
- fix symbol export for plugins
This commit is contained in:
psychocrypt
2017-09-30 23:46:08 +02:00
parent 87357352c9
commit ef551cc032
7 changed files with 25 additions and 15 deletions
+6 -2
View File
@@ -60,11 +60,15 @@ minethd::minethd(miner_work& pWork, size_t iNo, GpuContext* ctx)
oWorkThd = std::thread(&minethd::work_main, this);
}
extern "C" std::vector<IBackend*>* xmrstak_start_backend(uint32_t threadOffset, miner_work& pWork)
extern "C" {
#ifdef WIN32
__declspec(dllexport)
#endif
std::vector<IBackend*>* xmrstak_start_backend(uint32_t threadOffset, miner_work& pWork)
{
return amd::minethd::thread_starter(threadOffset, pWork);
}
} // extern "C"
bool minethd::init_gpus()
{