commit 5ffcbe5e0a7104f64702a832c9a696ad43adba83
parent b5c5ff366194a3d9418aee81a36d1900f120ff12
Author: falkTX <falktx@gmail.com>
Date: Mon, 5 Aug 2019 13:07:23 +0100
Only define rsz prefix when needed
Signed-off-by: falkTX <falktx@gmail.com>
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n";
pluginString += "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\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