Skip to content

Commit

Permalink
Define soHandle when on Linux
Browse files Browse the repository at this point in the history
Much like hModule is defined when on Windows, it is necessary to define
VSTGUI::soHandle when on Linux.  This keeps loading the plugin from
raising an undefined symbol error.

Fixes: surge-synthesizer#38
  • Loading branch information
whydoubt committed Nov 28, 2018
1 parent 7d9ff39 commit 776c2e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vst2/Vst2PluginInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpvReserved)
return 1;
}
} // extern "C"
#elif __linux__
namespace VSTGUI { void* soHandle = nullptr; }
#endif

//-------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 776c2e2

Please sign in to comment.