summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2010-04-09 08:32:22 +0200
committerAndrea Canciani <ranma42@gmail.com>2010-04-10 18:28:42 +0200
commite425c44e9c4c1796ccc3557a0368cf3b3a685a31 (patch)
tree770b44ec388128a0925b7a809ccad855efcc37aa
parent061ea78ad2838450b20d5550a7285823e0d24e1b (diff)
boilerplate: Compile xlib without xrender
cairo_boilerplate_xlib_surface_disable_render() is not defined when compiling without XRender, but it was used nonetheless. Replace it with an empty stub when XRender is not available.
-rw-r--r--boilerplate/cairo-boilerplate-xlib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate-xlib.c b/boilerplate/cairo-boilerplate-xlib.c
index 61bdd5a1..83280e99 100644
--- a/boilerplate/cairo-boilerplate-xlib.c
+++ b/boilerplate/cairo-boilerplate-xlib.c
@@ -269,6 +269,12 @@ cairo_boilerplate_xlib_surface_disable_render (cairo_surface_t *abstract_surface
return CAIRO_STATUS_SUCCESS;
}
+#else
+cairo_status_t
+cairo_boilerplate_xlib_surface_disable_render (cairo_surface_t *abstract_surface)
+{
+ return CAIRO_STATUS_SUCCESS;
+}
#endif