diff options
Diffstat (limited to 'backend/amd/minethd.cpp')
-rw-r--r-- | backend/amd/minethd.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/backend/amd/minethd.cpp b/backend/amd/minethd.cpp index 7e3c603..a7b84a7 100644 --- a/backend/amd/minethd.cpp +++ b/backend/amd/minethd.cpp @@ -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() { |