From 616e35d1fae703dc118ce503d25d4f57cfd16dfd Mon Sep 17 00:00:00 2001 From: M Joonas Pihlaja Date: Thu, 24 Jun 2010 09:44:07 +0300 Subject: [PATCH] boilerplate: Remove the xlib-window target from Renderless builds. I don't know why _cairo_boilerplate_xlib_window_create_surface() is in the Render-only section of the code, but since it is, this patch makes the boilerplate at least compile if we don't have Render support built in. --- boilerplate/cairo-boilerplate-xlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boilerplate/cairo-boilerplate-xlib.c b/boilerplate/cairo-boilerplate-xlib.c index 17de2ad85..8c4128395 100644 --- a/boilerplate/cairo-boilerplate-xlib.c +++ b/boilerplate/cairo-boilerplate-xlib.c @@ -509,8 +509,6 @@ static const cairo_boilerplate_target_t targets[] = { _cairo_boilerplate_xlib_synchronize, FALSE, FALSE, FALSE }, -#endif -#if CAIRO_HAS_XLIB_SURFACE { "xlib-window", "xlib", NULL, NULL, CAIRO_SURFACE_TYPE_XLIB, CAIRO_CONTENT_COLOR, 1, @@ -523,6 +521,8 @@ static const cairo_boilerplate_target_t targets[] = { _cairo_boilerplate_xlib_synchronize, FALSE, FALSE, FALSE }, +#endif +#if CAIRO_HAS_XLIB_SURFACE /* This is a fallback surface which uses xlib fallbacks instead of * the Render extension. */ {