From 0ba0dab675ef7cca9454212fb30e401dd7ba910f Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 16 Apr 2022 15:25:00 +0200 Subject: [PATCH] Add missing extern "C" to GetPluginFactory --- src/plugin/vst3-plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugin/vst3-plugin.cpp b/src/plugin/vst3-plugin.cpp index 3c5ec6ad..256532e1 100644 --- a/src/plugin/vst3-plugin.cpp +++ b/src/plugin/vst3-plugin.cpp @@ -94,7 +94,8 @@ bool DeinitModule() { * the plugin in our Wine application, retrieve its information and supported * classes, and then recreate it here. */ -YABRIDGE_EXPORT Steinberg::IPluginFactory* PLUGIN_API GetPluginFactory() { +extern "C" YABRIDGE_EXPORT Steinberg::IPluginFactory* PLUGIN_API +GetPluginFactory() { // The host should have called `InitModule()` first assert(bridge);