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
+7 -1
View File
@@ -105,10 +105,16 @@ bool minethd::self_test()
}
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 nvidia::minethd::thread_starter(threadOffset, pWork);
}
} // extern "C"
std::vector<IBackend*>* minethd::thread_starter(uint32_t threadOffset, miner_work& pWork)
{