summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/NodeFactory.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-03-11 22:20:13 +0000
committerDavid Robillard <d@drobilla.net>2008-03-11 22:20:13 +0000
commit7aa8ef117f97d4a3dd92cabfaf57a10e3ed83c79 (patch)
tree36913e00509799a735b4320e95573b8c50a4f784 /src/libs/engine/NodeFactory.cpp
parent7ff2c2fbab69ffd9b1290c6f82ca87d3b2dc4a89 (diff)
downloadingen-7aa8ef117f97d4a3dd92cabfaf57a10e3ed83c79.tar.gz
ingen-7aa8ef117f97d4a3dd92cabfaf57a10e3ed83c79.tar.bz2
ingen-7aa8ef117f97d4a3dd92cabfaf57a10e3ed83c79.zip
Fix building w/o LADSPA.
git-svn-id: http://svn.drobilla.net/lad/ingen@1163 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/NodeFactory.cpp')
-rw-r--r--src/libs/engine/NodeFactory.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/engine/NodeFactory.cpp b/src/libs/engine/NodeFactory.cpp
index 4ca038b6..b96ad5ca 100644
--- a/src/libs/engine/NodeFactory.cpp
+++ b/src/libs/engine/NodeFactory.cpp
@@ -83,6 +83,7 @@ NodeFactory::plugin(const string& type, const string& lib, const string& label)
if (type != "LADSPA" || lib == "" || label == "")
return NULL;
+#ifdef HAVE_LADSPA
for (Plugins::const_iterator i = _plugins.begin(); i != _plugins.end(); ++i) {
LADSPAPlugin* lp = dynamic_cast<LADSPAPlugin*>(i->second);
if (lp && lp->type_string() == type
@@ -90,6 +91,7 @@ NodeFactory::plugin(const string& type, const string& lib, const string& label)
&& lp->label() == label)
return lp;
}
+#endif
cerr << "ERROR: Failed to find " << type << " plugin " << lib << " / " << label << endl;