From 422e4a0083b3fb7986b5a54661762bec7f30f1b1 Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 2 Jul 2020 18:59:29 +0100 Subject: [PATCH] VST3: Fix link of 32-bit plugins --- modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)