From c36ba1f99ca697dfec026ba557aaf55feb65ec88 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 14 Jul 2024 14:08:32 +0100 Subject: [PATCH] Fix headless build Signed-off-by: falkTX --- include/plugincontext.hpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/include/plugincontext.hpp b/include/plugincontext.hpp index 661b31d..bda0263 100644 --- a/include/plugincontext.hpp +++ b/include/plugincontext.hpp @@ -20,12 +20,7 @@ struct Message; // Base DISTRHO classes #ifndef DISTRHO_DETAILS_HPP_INCLUDED - namespace CardinalDISTRHO { - -class Plugin; -class UI; - struct MidiEvent { static const uint32_t kDataSize = 4; uint32_t frame; @@ -33,9 +28,19 @@ struct MidiEvent { uint8_t data[kDataSize]; const uint8_t* dataExt; }; +} +#endif +#ifndef DISTRHO_PLUGIN_HPP_INCLUDED +namespace CardinalDISTRHO { +class Plugin; } +#endif +#ifndef DISTRHO_UI_HPP_INCLUDED +namespace CardinalDISTRHO { +class UI; +} #endif // --------------------------------------------------------------------------------------------------------------------