Browse Source

Export "main" symbol for VST2 on Windows

Signed-off-by: falkTX <falktx@falktx.com>
pull/328/head
falkTX 4 years ago
parent
commit
4685979dc1
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      distrho/src/DistrhoPluginVST2.cpp

+ 9
- 0
distrho/src/DistrhoPluginVST2.cpp View File

@@ -1740,4 +1740,13 @@ const AEffect* VSTPluginMain(audioMasterCallback audioMaster)
return effect;
}

#if DISTRHO_OS_WINDOWS
// backwards compat with old hosts
DISTRHO_PLUGIN_EXPORT const AEffect* main(audioMasterCallback audioMaster);
DISTRHO_PLUGIN_EXPORT const AEffect* main(audioMasterCallback audioMaster)
{
return VSTPluginMain(audioMaster):
}
#endif

// -----------------------------------------------------------------------

Loading…
Cancel
Save