From 2af0d830244b5b504b1bd28c3660e9f441520856 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Jun 2011 21:35:22 +0000 Subject: Fix lilv_ui_is_supported when Lilv is built independently. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3346 a436a847-0d15-0410-975c-d299462d15a1 --- src/ui.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/ui.c b/src/ui.c index 36287e1..065a37d 100644 --- a/src/ui.c +++ b/src/ui.c @@ -80,14 +80,13 @@ LILV_API unsigned lilv_ui_is_supported(const LilvUI* ui, LilvUISupportedFunc supported_func, - const LilvNode* container_type, - const LilvNode** ui_type) + const LilvNode* container_type, + const LilvNode** ui_type) { -#ifdef HAVE_SUIL const LilvNodes* classes = lilv_ui_get_classes(ui); LILV_FOREACH(nodes, c, classes) { const LilvNode* type = lilv_nodes_get(classes, c); - const unsigned q = supported_func(lilv_node_as_uri(container_type), + const unsigned q = supported_func(lilv_node_as_uri(container_type), lilv_node_as_uri(type)); if (q) { if (ui_type) { @@ -96,7 +95,7 @@ lilv_ui_is_supported(const LilvUI* ui, return q; } } -#endif + return 0; } -- cgit v1.2.1