From 2260b23dc5d1c754a7fa43ab314818cfbebb9eab Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 30 Oct 2015 12:32:18 +0100 Subject: [PATCH] Disable UI if DGL is not available --- distrho/src/DistrhoPluginChecks.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/distrho/src/DistrhoPluginChecks.h b/distrho/src/DistrhoPluginChecks.h index eb7cc639..82b285bc 100644 --- a/distrho/src/DistrhoPluginChecks.h +++ b/distrho/src/DistrhoPluginChecks.h @@ -104,6 +104,14 @@ # error Synths need MIDI input to work! #endif +// ----------------------------------------------------------------------- +// Disable UI if DGL is not available + +#if DISTRHO_PLUGIN_HAS_UI && ! defined(HAVE_DGL) +# undef DISTRHO_PLUGIN_HAS_UI +# define DISTRHO_PLUGIN_HAS_UI 0 +#endif + // ----------------------------------------------------------------------- #endif // DISTRHO_PLUGIN_CHECKS_H_INCLUDED