1 diff -ru harfbuzz/src/hb-atomic-private.hh harfbuzz-fied/src/hb-atomic-private.hh
2 --- harfbuzz/src/hb-atomic-private.hh 2013-04-04 21:01:42.000000000 +0200
3 +++ harfbuzz-fied/src/hb-atomic-private.hh 2014-01-22 14:57:21.000000000 +0100
5 #elif !defined(HB_NO_MT) && defined(__APPLE__)
7 #include <libkern/OSAtomic.h>
8 -#ifdef __MAC_OS_X_MIN_REQUIRED
10 #include <AvailabilityMacros.h>
11 -#elif defined(__IPHONE_OS_MIN_REQUIRED)
12 -#include <Availability.h>
15 typedef int32_t hb_atomic_int_t;
18 #define hb_atomic_ptr_get(P) (OSMemoryBarrier (), (void *) *(P))
19 #if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4 || __IPHONE_VERSION_MIN_REQUIRED >= 20100)
21 +#define hb_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwap64Barrier ((int64_t) (O), (int64_t) (N), (int64_t*) (P))
23 #define hb_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwapPtrBarrier ((void *) (O), (void *) (N), (void **) (P))
26 #if __ppc64__ || __x86_64__
27 #define hb_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwap64Barrier ((int64_t) (O), (int64_t) (N), (int64_t*) (P))