Skip to content

Commit

Permalink
fix conflicting types for 'sync' on AIX, bug#89338
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Haubenwallner authored and Bryce Harrington committed Mar 5, 2015
1 parent 70cc8f2 commit ac75ab9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/cairo-surface-observer.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ add_record (cairo_observation_t *log,
}

static void
sync (cairo_surface_t *target, int x, int y)
_cairo_surface_sync (cairo_surface_t *target, int x, int y)
{
cairo_rectangle_int_t extents;

Expand Down Expand Up @@ -751,7 +751,7 @@ _cairo_surface_observer_paint (void *abstract_surface,
if (unlikely (status))
return status;

sync (surface->target, x, y);
_cairo_surface_sync (surface->target, x, y);
t = _cairo_time_get_delta (t);

add_record_paint (&surface->log, surface->target, op, source, clip, t);
Expand Down Expand Up @@ -837,7 +837,7 @@ _cairo_surface_observer_mask (void *abstract_surface,
if (unlikely (status))
return status;

sync (surface->target, x, y);
_cairo_surface_sync (surface->target, x, y);
t = _cairo_time_get_delta (t);

add_record_mask (&surface->log,
Expand Down Expand Up @@ -944,7 +944,7 @@ _cairo_surface_observer_fill (void *abstract_surface,
if (unlikely (status))
return status;

sync (surface->target, x, y);
_cairo_surface_sync (surface->target, x, y);
t = _cairo_time_get_delta (t);

add_record_fill (&surface->log,
Expand Down Expand Up @@ -1063,7 +1063,7 @@ _cairo_surface_observer_stroke (void *abstract_surface,
if (unlikely (status))
return status;

sync (surface->target, x, y);
_cairo_surface_sync (surface->target, x, y);
t = _cairo_time_get_delta (t);

add_record_stroke (&surface->log,
Expand Down Expand Up @@ -1183,7 +1183,7 @@ _cairo_surface_observer_glyphs (void *abstract_surface,
if (unlikely (status))
return status;

sync (surface->target, x, y);
_cairo_surface_sync (surface->target, x, y);
t = _cairo_time_get_delta (t);

add_record_glyphs (&surface->log,
Expand Down
4 changes: 2 additions & 2 deletions src/cairo-xlib-surface-shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ static void send_event(cairo_xlib_display_t *display,
display->shm->last_event = ev.serial;
}

static void sync (cairo_xlib_display_t *display)
static void _cairo_xlib_display_sync (cairo_xlib_display_t *display)
{
cairo_xlib_shm_info_t *info;
struct pqueue *pq = &display->shm->info;
Expand Down Expand Up @@ -949,7 +949,7 @@ _cairo_xlib_surface_update_shm (cairo_xlib_surface_t *surface)
XChangeGC (display->display, gc, GCSubwindowMode, &gcv);
}

sync (display);
_cairo_xlib_display_sync (display);
shm->active = 0;
shm->idle--;

Expand Down

0 comments on commit ac75ab9

Please sign in to comment.