summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2014-10-02 18:10:00 +0200
committerBryce Harrington <bryce@osg.samsung.com>2014-10-03 11:38:44 -0700
commit531da6fb915a6e9ea33216a90196ae962876acf4 (patch)
tree8df7244bfac02cb4053378e44fb655cd0d1040be
parent14df211b9c12719f67412aedd6610eb623df7d7e (diff)
downloadcairo-531da6fb915a6e9ea33216a90196ae962876acf4.tar.gz
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 <ranma42@gmail.com>
-rw-r--r--src/cairo-quartz-surface.c22
1 files 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)
{