1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

VST3: Fix link of 32-bit plugins

This commit is contained in:
reuk 2020-07-02 18:59:29 +01:00
parent 9cc3fca7d0
commit 422e4a0083
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -3314,7 +3314,11 @@ JUCE_EXPORTED_FUNCTION IPluginFactory* PLUGIN_API GetPluginFactory()
#if JUCE_MSVC || (JUCE_WINDOWS && JUCE_CLANG)
// Cunning trick to force this function to be exported. Life's too short to
// faff around creating .def files for this kind of thing.
#pragma comment(linker, "/EXPORT:GetPluginFactory=GetPluginFactory")
#if JUCE_32BIT
#pragma comment(linker, "/EXPORT:GetPluginFactory=_GetPluginFactory@0")
#else
#pragma comment(linker, "/EXPORT:GetPluginFactory=GetPluginFactory")
#endif
#endif
if (globalFactory == nullptr)