From 7aa8ef117f97d4a3dd92cabfaf57a10e3ed83c79 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 11 Mar 2008 22:20:13 +0000 Subject: Fix building w/o LADSPA. git-svn-id: http://svn.drobilla.net/lad/ingen@1163 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/NodeFactory.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(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; -- cgit v1.2.1