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/port.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/port.c')
-rw-r--r-- | src/port.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -28,7 +28,7 @@ lilv_port_new(LilvWorld* world, uint32_t index, const char* symbol) { - LilvPort* port = malloc(sizeof(struct LilvPortImpl)); + LilvPort* port = (LilvPort*)malloc(sizeof(LilvPort)); port->node = sord_node_copy(node); port->index = index; port->symbol = lilv_node_new(world, LILV_VALUE_STRING, symbol); @@ -232,7 +232,8 @@ lilv_port_get_scale_points(const LilvPlugin* p, p->world->uris.rdfs_label); if (value && label) { - zix_tree_insert(ret, lilv_scale_point_new(value, label), NULL); + zix_tree_insert( + (ZixTree*)ret, lilv_scale_point_new(value, label), NULL); } } lilv_match_end(points); |