From: Behdad Esfahbod Date: Mon, 14 Jan 2013 06:26:43 +0000 (-0600) Subject: Fix residuals from fontconfig changes X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de649f07f1f8fdeb998a0b049759f4f7363e25d2;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Fix residuals from fontconfig changes --- diff --git a/src/hb-atomic-private.hh b/src/hb-atomic-private.hh index 75fbcd6..b909bc8 100644 --- a/src/hb-atomic-private.hh +++ b/src/hb-atomic-private.hh @@ -104,11 +104,11 @@ typedef int hb_atomic_int_t; #include #include -typedef unsigned int fc_atomic_int_t; -#define fc_atomic_int_add(AI, V) ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V)) - (V)) +typedef unsigned int hb_atomic_int_t; +#define hb_atomic_int_add(AI, V) ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V)) - (V)) -#define fc_atomic_ptr_get(P) ( ({__machine_rw_barrier ();}), (void *) *(P)) -#define fc_atomic_ptr_cmpexch(P,O,N) ( ({__machine_rw_barrier ();}), atomic_cas_ptr ((P), (O), (N)) == (void *) (O) ? FcTrue : FcFalse) +#define hb_atomic_ptr_get(P) ( ({__machine_rw_barrier ();}), (void *) *(P)) +#define hb_atomic_ptr_cmpexch(P,O,N) ( ({__machine_rw_barrier ();}), atomic_cas_ptr ((void **) (P), (void *) (O), (void *) (N)) == (void *) (O) ? true : false) #elif !defined(HB_NO_MT)