From 22ea4609be03584de2f2985e55bf169b7af4f868 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Sat, 30 Oct 2010 11:28:03 +0200 Subject: [PATCH] path: Solve co-dependency problem FALSE and TRUE are defined in cairoint.h, but cairoint.h depends on cairo-path-fixed-private.h, so just use 0/1 to avoid the depencency loop. Fixes a number of errors reported by 'make check'. --- src/cairo-path-fixed-private.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cairo-path-fixed-private.h b/src/cairo-path-fixed-private.h index ce138de2b..9fcd5020b 100644 --- a/src/cairo-path-fixed-private.h +++ b/src/cairo-path-fixed-private.h @@ -151,10 +151,10 @@ static inline cairo_bool_t _cairo_path_fixed_fill_is_rectilinear (const cairo_path_fixed_t *path) { if (! path->fill_is_rectilinear) - return FALSE; + return 0; if (! path->has_current_point || path->needs_move_to) - return TRUE; + return 1; /* check whether the implicit close preserves the rectilinear property */ return path->current_point.x == path->last_move_point.x || @@ -171,10 +171,10 @@ static inline cairo_bool_t _cairo_path_fixed_fill_maybe_region (const cairo_path_fixed_t *path) { if (! path->fill_maybe_region) - return FALSE; + return 0; if (! path->has_current_point || path->needs_move_to) - return TRUE; + return 1; /* check whether the implicit close preserves the rectilinear property * (the integer point property is automatically preserved)