diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index 5740f20612..d2b16d9e08 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -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)