From 5ffcbe5e0a7104f64702a832c9a696ad43adba83 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 5 Aug 2019 13:07:50 +0100 Subject: [PATCH] Only define rsz prefix when needed Signed-off-by: falkTX --- distrho/src/DistrhoPluginLV2export.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distrho/src/DistrhoPluginLV2export.cpp b/distrho/src/DistrhoPluginLV2export.cpp index 8e6cef63..4248cfad 100644 --- a/distrho/src/DistrhoPluginLV2export.cpp +++ b/distrho/src/DistrhoPluginLV2export.cpp @@ -318,7 +318,9 @@ void lv2_generate_ttl(const char* const basename) pluginString += "@prefix opts: <" LV2_OPTIONS_PREFIX "> .\n"; pluginString += "@prefix rdf: .\n"; pluginString += "@prefix rdfs: .\n"; +#if DISTRHO_LV2_USE_EVENTS_IN || DISTRHO_LV2_USE_EVENTS_OUT pluginString += "@prefix rsz: <" LV2_RESIZE_PORT_PREFIX "> .\n"; +#endif #if DISTRHO_PLUGIN_HAS_UI pluginString += "@prefix ui: <" LV2_UI_PREFIX "> .\n"; #endif