From 531da6fb915a6e9ea33216a90196ae962876acf4 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Thu, 2 Oct 2014 18:10:00 +0200 Subject: quartz: Fix build Cairo cannot build with Quartz enabled since 573ddfc3d5c08c37b95a21e0a1b34acecc646053, because of a double definition of _cairo_surface_is_quartz(). References: https://bugs.freedesktop.org/show_bug.cgi?id=84569 Signed-off-by: Andrea Canciani --- src/cairo-quartz-surface.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c index 2aa83bebf..667828bd5 100644 --- a/src/cairo-quartz-surface.c +++ b/src/cairo-quartz-surface.c @@ -2195,20 +2195,6 @@ _cairo_quartz_surface_clipper_intersect_clip_path (cairo_surface_clipper_t *clip return CAIRO_STATUS_SUCCESS; } -/** - * _cairo_surface_is_quartz: - * @surface: a #cairo_surface_t - * - * Checks if a surface is a #cairo_quartz_surface_t - * - * Return value: True if the surface is an quartz surface - **/ -inline cairo_bool_t -_cairo_surface_is_quartz (cairo_surface_t *surface) -{ - return surface->backend == &cairo_quartz_surface_backend; -} - // XXXtodo implement show_page; need to figure out how to handle begin/end static const struct _cairo_surface_backend cairo_quartz_surface_backend = { @@ -2479,6 +2465,14 @@ cairo_quartz_surface_get_cg_context (cairo_surface_t *surface) return NULL; } +/** + * _cairo_surface_is_quartz: + * @surface: a #cairo_surface_t + * + * Checks if a surface is a #cairo_quartz_surface_t + * + * Return value: True if the surface is an quartz surface + **/ static cairo_bool_t _cairo_surface_is_quartz (const cairo_surface_t *surface) { -- cgit v1.2.1