summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_ui.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-15 23:10:13 +0000
committerDavid Robillard <d@drobilla.net>2011-05-15 23:10:13 +0000
commit1959efd94ddbc148f9e1b48da47acc5b7ce67457 (patch)
treed96e9d383bfc2d69850306d56bfe531bcafbea5c /gtk2_ardour/plugin_ui.cc
parent3a855fb69a1757238d07326b8056329569022a12 (diff)
Support compilation with (old) SLV2, or (new) Lilv and (optionally) Suil.
Fix ticket #0004041. git-svn-id: svn://localhost/ardour2/branches/3.0@9516 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_ui.cc')
-rw-r--r--gtk2_ardour/plugin_ui.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc
index 7d93239952..76764f8a5c 100644
--- a/gtk2_ardour/plugin_ui.cc
+++ b/gtk2_ardour/plugin_ui.cc
@@ -317,10 +317,7 @@ PluginUIWindow::app_activated (bool)
bool
PluginUIWindow::create_lv2_editor(boost::shared_ptr<PluginInsert> insert)
{
-#ifndef LV2_SUPPORT
- return false;
-#else
-
+#if defined(HAVE_SLV2) || defined(HAVE_SUIL)
boost::shared_ptr<LV2Plugin> vp;
if ((vp = boost::dynamic_pointer_cast<LV2Plugin> (insert->plugin())) == 0) {
@@ -334,6 +331,8 @@ PluginUIWindow::create_lv2_editor(boost::shared_ptr<PluginInsert> insert)
}
return true;
+#else
+ return false;
#endif
}