1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

audio/dragonfly-reverb-lv2: Fix build on 15

Reported by:	fallout
This commit is contained in:
Yuri Victorovich 2024-06-23 23:26:31 -07:00
parent 75b95d2410
commit 20fa112f67

View File

@ -0,0 +1,34 @@
- patch from https://github.com/DISTRHO/DPF/commit/56c106c0fd886a5d29e018807f40adb00f57fe4e
- fixing build on FreeBSD 15 due to VST plugin issues
--- dpf/distrho/src/DistrhoPluginVST2.cpp.orig 2023-04-15 12:38:30 UTC
+++ dpf/distrho/src/DistrhoPluginVST2.cpp
@@ -1603,11 +1603,7 @@ DISTRHO_PLUGIN_EXPORT
END_NAMESPACE_DISTRHO
DISTRHO_PLUGIN_EXPORT
-#if defined(DISTRHO_OS_MAC) || defined(DISTRHO_OS_WASM) || defined(DISTRHO_OS_WINDOWS)
-const vst_effect* VSTPluginMain(vst_host_callback audioMaster);
-#else
-const vst_effect* VSTPluginMain(vst_host_callback audioMaster) asm ("main");
-#endif
+const vst_effect* VSTPluginMain(vst_host_callback);
DISTRHO_PLUGIN_EXPORT
const vst_effect* VSTPluginMain(const vst_host_callback audioMaster)
@@ -1731,4 +1727,14 @@ const vst_effect* VSTPluginMain(const vst_host_callbac
return effect;
}
-// -----------------------------------------------------------------------
+
+#if !(defined(DISTRHO_OS_MAC) || defined(DISTRHO_OS_WASM) || defined(DISTRHO_OS_WINDOWS))
+DISTRHO_PLUGIN_EXPORT
+const vst_effect* VSTPluginMainCompat(vst_host_callback) asm ("main");
+
+DISTRHO_PLUGIN_EXPORT
+const vst_effect* VSTPluginMainCompat(const vst_host_callback audioMaster)
+{
+ return VSTPluginMain(audioMaster);
+}
+#endif