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/pluginclass.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/pluginclass.c')
-rw-r--r-- | src/pluginclass.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pluginclass.c b/src/pluginclass.c index 19ba227..46308ab 100644 --- a/src/pluginclass.c +++ b/src/pluginclass.c @@ -29,7 +29,7 @@ lilv_plugin_class_new(LilvWorld* world, if (parent_node && sord_node_get_type(parent_node) != SORD_URI) { return NULL; // Not an LV2 plugin superclass (FIXME: discover properly) } - LilvPluginClass* pc = malloc(sizeof(struct LilvPluginClassImpl)); + LilvPluginClass* pc = (LilvPluginClass*)malloc(sizeof(LilvPluginClass)); pc->world = world; pc->uri = lilv_node_new_from_node(world, uri); pc->label = lilv_node_new(world, LILV_VALUE_STRING, label); @@ -82,14 +82,14 @@ lilv_plugin_class_get_children(const LilvPluginClass* plugin_class) LilvPluginClasses* all = plugin_class->world->plugin_classes; LilvPluginClasses* result = zix_tree_new(false, lilv_ptr_cmp, NULL, NULL); - for (ZixTreeIter* i = zix_tree_begin(all); - i != zix_tree_end(all); + for (ZixTreeIter* i = zix_tree_begin((ZixTree*)all); + i != zix_tree_end((ZixTree*)all); i = zix_tree_iter_next(i)) { - const LilvPluginClass* c = zix_tree_get(i); + const LilvPluginClass* c = (LilvPluginClass*)zix_tree_get(i); const LilvNode* parent = lilv_plugin_class_get_parent_uri(c); if (parent && lilv_node_equals(lilv_plugin_class_get_uri(plugin_class), parent)) - zix_tree_insert(result, (LilvPluginClass*)c, NULL); + zix_tree_insert((ZixTree*)result, (LilvPluginClass*)c, NULL); } return result; |