diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-11-03 18:22:52 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-11-03 18:22:52 +0000 |
commit | eb5d8ebefd4714b3f20ddd7551450f9e7604a9d1 (patch) | |
tree | 1b4460fa4afdbf7cb6da6b130c71902fc555677a | |
parent | 657a6b8cb36918ea57fe8152aa3cc90528f15c58 (diff) | |
download | libsvgtiny-eb5d8ebefd4714b3f20ddd7551450f9e7604a9d1.tar.gz libsvgtiny-eb5d8ebefd4714b3f20ddd7551450f9e7604a9d1.tar.bz2 |
Void myself unpleasantly in order to satisfy RISC OS toolchain
-rw-r--r-- | src/svgtiny.c | 5 | ||||
-rw-r--r-- | src/svgtiny_gradient.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/svgtiny.c b/src/svgtiny.c index 0dd5028..fd8c66d 100644 --- a/src/svgtiny.c +++ b/src/svgtiny.c @@ -263,7 +263,7 @@ svgtiny_code svgtiny_parse_svg(dom_element *svg, svgtiny_parse_transform_attributes(svg, &state); - exc = dom_node_get_first_child(svg, &child); + exc = dom_node_get_first_child(svg, (dom_node **) (void *) &child); if (exc != DOM_NO_ERR) { return svgtiny_LIBDOM_ERROR; } @@ -323,7 +323,8 @@ svgtiny_code svgtiny_parse_svg(dom_element *svg, dom_node_unref(child); return code; } - exc = dom_node_get_next_sibling(child, &next); + exc = dom_node_get_next_sibling(child, + (dom_node **) (void *) &next); dom_node_unref(child); if (exc != DOM_NO_ERR) { return svgtiny_LIBDOM_ERROR; diff --git a/src/svgtiny_gradient.c b/src/svgtiny_gradient.c index 19f7f1f..06e63c4 100644 --- a/src/svgtiny_gradient.c +++ b/src/svgtiny_gradient.c @@ -188,7 +188,8 @@ svgtiny_code svgtiny_parse_linear_gradient(dom_element *linear, dom_element *stop; float offset = -1; svgtiny_colour color = svgtiny_TRANSPARENT; - exc = dom_nodelist_item(stops, stopnr, &stop); + exc = dom_nodelist_item(stops, stopnr, + (dom_node **) (void *) &stop); if (exc != DOM_NO_ERR) continue; exc = dom_element_get_attribute(stop, |