From a2067e6bd634caad274963b57a2500a02669af9f Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 29 Sep 2018 21:49:52 +0200 Subject: [PATCH] Import a simple fix from Carla --- distrho/src/DistrhoPluginCarla.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/distrho/src/DistrhoPluginCarla.cpp b/distrho/src/DistrhoPluginCarla.cpp index a0d5bb76..0bbb3a50 100644 --- a/distrho/src/DistrhoPluginCarla.cpp +++ b/distrho/src/DistrhoPluginCarla.cpp @@ -26,13 +26,14 @@ START_NAMESPACE_DISTRHO +#if ! DISTRHO_PLUGIN_WANT_MIDI_OUTPUT +static const writeMidiFunc writeMidiCallback = nullptr; +#endif + #if DISTRHO_PLUGIN_HAS_UI // ----------------------------------------------------------------------- // Carla UI -#if ! DISTRHO_PLUGIN_WANT_MIDI_OUTPUT -static const writeMidiFunc writeMidiCallback = nullptr; -#endif #if ! DISTRHO_PLUGIN_WANT_STATE static const setStateFunc setStateCallback = nullptr; #endif