mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
audio/dpf-plugins-lv2: Fix build on 15
This commit is contained in:
parent
7925a31f9a
commit
b39ae635bf
1 changed files with 34 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue