Define DllMain for VSTGUI
This commit is contained in:
parent
66826ef879
commit
58fe6fb115
1 changed files with 16 additions and 0 deletions
|
|
@ -15,6 +15,9 @@
|
|||
#include <dlfcn.h>
|
||||
#include <poll.h>
|
||||
#endif
|
||||
#if WINDOWS
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#if LINUX
|
||||
void Lv2IdleRunLoop::execIdle()
|
||||
|
|
@ -168,3 +171,16 @@ void VSTGUI::initializeSoHandle()
|
|||
VSTGUI::soHandleInitialized = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
///
|
||||
#if WINDOWS
|
||||
void* hInstance = nullptr;
|
||||
|
||||
__declspec(dllexport)
|
||||
BOOL WINAPI DllMain(HINSTANCE dllInstance, DWORD reason, LPVOID)
|
||||
{
|
||||
if (reason == DLL_PROCESS_ATTACH)
|
||||
hInstance = dllInstance;
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue