summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-03 19:53:09 +0000
committerDavid Robillard <d@drobilla.net>2009-05-03 19:53:09 +0000
commit8491953e20645af21eee74e760da3a4399fd4e23 (patch)
tree81b7082909d3345f00318b063419a6dddfa509e8 /gtk2_ardour
parent1ae39840b3e7b1740b44e5889983e93d837f8e90 (diff)
Fix LV2 compilation.
git-svn-id: svn://localhost/ardour2/branches/3.0@5030 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/generic_pluginui.cc10
-rw-r--r--gtk2_ardour/lv2_plugin_ui.h5
-rw-r--r--gtk2_ardour/plugin_ui.cc4
3 files changed, 10 insertions, 9 deletions
diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc
index 842fc15cdb..5d6dd172d9 100644
--- a/gtk2_ardour/generic_pluginui.cc
+++ b/gtk2_ardour/generic_pluginui.cc
@@ -38,7 +38,7 @@
#include "ardour/plugin.h"
#include "ardour/plugin_insert.h"
#include "ardour/ladspa_plugin.h"
-#ifdef HAVE_LV2
+#ifdef HAVE_SLV2
#include "ardour/lv2_plugin.h"
#endif
@@ -404,7 +404,7 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
if (plugin->parameter_is_input (port_index)) {
boost::shared_ptr<LadspaPlugin> lp;
-#ifdef HAVE_LV2
+#ifdef HAVE_SLV2
boost::shared_ptr<LV2Plugin> lv2p;
#endif
if ((lp = boost::dynamic_pointer_cast<LadspaPlugin>(plugin)) != 0) {
@@ -429,7 +429,7 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
return control_ui;
}
-#ifdef HAVE_LV2
+#ifdef HAVE_SLV2
} else if ((lv2p = boost::dynamic_pointer_cast<LV2Plugin>(plugin)) != 0) {
SLV2Port port = lv2p->slv2_port(port_index);
@@ -794,7 +794,7 @@ GenericPluginUI::setup_scale_values(guint32 port_index, ControlUI* cui)
{
vector<string> enums;
boost::shared_ptr<LadspaPlugin> lp;
-#ifdef HAVE_LV2
+#ifdef HAVE_SLV2
boost::shared_ptr<LV2Plugin> lv2p;
#endif
@@ -816,7 +816,7 @@ GenericPluginUI::setup_scale_values(guint32 port_index, ControlUI* cui)
lrdf_free_setting_values(defaults);
}
-#ifdef HAVE_LV2
+#ifdef HAVE_SLV2
} else if ((lv2p = boost::dynamic_pointer_cast<LV2Plugin>(plugin)) != 0) {
SLV2Port port = lv2p->slv2_port(port_index);
diff --git a/gtk2_ardour/lv2_plugin_ui.h b/gtk2_ardour/lv2_plugin_ui.h
index 24a6819b37..0ddc86b217 100644
--- a/gtk2_ardour/lv2_plugin_ui.h
+++ b/gtk2_ardour/lv2_plugin_ui.h
@@ -32,7 +32,7 @@
#include "ardour/types.h"
#include "plugin_ui.h"
-#ifdef HAVE_LV2
+#ifdef HAVE_SLV2
namespace ARDOUR {
class PluginInsert;
@@ -75,7 +75,8 @@ class LV2PluginUI : public PlugUIBase, public Gtk::VBox
void output_update();
bool is_update_wanted(uint32_t index);
};
-#endif // HAVE_LV2
+
+#endif // HAVE_SLV2
#endif /* __ardour_lv2_plugin_ui_h__ */
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc
index e92da7f49a..38de2bae04 100644
--- a/gtk2_ardour/plugin_ui.cc
+++ b/gtk2_ardour/plugin_ui.cc
@@ -43,7 +43,7 @@
#ifdef VST_SUPPORT
#include "ardour/vst_plugin.h"
#endif
-#ifdef HAVE_LV2
+#ifdef HAVE_SLV2
#include "ardour/lv2_plugin.h"
#include "lv2_plugin_ui.h"
#endif
@@ -289,7 +289,7 @@ PluginUIWindow::app_activated (bool yn)
bool
PluginUIWindow::create_lv2_editor(boost::shared_ptr<PluginInsert> insert)
{
-#ifndef HAVE_LV2
+#ifndef HAVE_SLV2
return false;
#else