diff options
author | David Robillard <d@drobilla.net> | 2012-01-17 02:13:19 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-17 02:13:19 +0000 |
commit | 33b20e5c20b0bbac5db9d8022ee5499b8cb95b5c (patch) | |
tree | 8017b89fe372677d21d73782ab0b2a6a4cdb99b6 /src/collections.c | |
parent | 012e8a8785abcbf403d842d67303d7470b33694c (diff) | |
download | lilv-33b20e5c20b0bbac5db9d8022ee5499b8cb95b5c.tar.gz lilv-33b20e5c20b0bbac5db9d8022ee5499b8cb95b5c.tar.bz2 lilv-33b20e5c20b0bbac5db9d8022ee5499b8cb95b5c.zip |
Support compilation as C++ under MSVC++,
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3955 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/collections.c')
-rw-r--r-- | src/collections.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/collections.c b/src/collections.c index 95542da..ebb5633 100644 --- a/src/collections.c +++ b/src/collections.c @@ -55,7 +55,7 @@ LilvIter* lilv_collection_begin(const LilvCollection* collection) { if (collection) { - return zix_tree_begin((LilvCollection*)collection); + return (LilvIter*)zix_tree_begin((ZixTree*)collection); } return NULL; } @@ -104,14 +104,14 @@ const LilvPluginClass* lilv_plugin_classes_get_by_uri(const LilvPluginClasses* coll, const LilvNode* uri) { - return (LilvPluginClass*)lilv_collection_get_by_uri(coll, uri); + return (LilvPluginClass*)lilv_collection_get_by_uri((ZixTree*)coll, uri); } LILV_API const LilvUI* lilv_uis_get_by_uri(const LilvUIs* coll, const LilvNode* uri) { - return (LilvUI*)lilv_collection_get_by_uri((LilvUIs*)coll, uri); + return (LilvUI*)lilv_collection_get_by_uri((ZixTree*)coll, uri); } /* Plugins */ @@ -126,7 +126,7 @@ LILV_API const LilvPlugin* lilv_plugins_get_by_uri(const LilvPlugins* list, const LilvNode* uri) { - return (LilvPlugin*)lilv_collection_get_by_uri((LilvPlugins*)list, uri); + return (LilvPlugin*)lilv_collection_get_by_uri((ZixTree*)list, uri); } /* Nodes */ @@ -166,13 +166,13 @@ prefix##_get(const CT* collection, LilvIter* i) { \ LILV_API \ LilvIter* \ prefix##_next(const CT* collection, LilvIter* i) { \ - return zix_tree_iter_next(i); \ + return zix_tree_iter_next((ZixTreeIter*)i); \ } \ \ LILV_API \ bool \ prefix##_is_end(const CT* collection, LilvIter* i) { \ - return zix_tree_iter_is_end(i); \ + return zix_tree_iter_is_end((ZixTreeIter*)i); \ } LILV_COLLECTION_IMPL(lilv_plugin_classes, LilvPluginClasses, LilvPluginClass) |