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
1
--- harfbuzz-1.0.6/src/hb-atomic-private.hh.orig 2015-09-29 15:48:46.947083938 +0200
2
+++ harfbuzz-1.0.6/src/hb-atomic-private.hh 2015-10-26 00:06:08.564306388 +0100
5
4
#elif !defined(HB_NO_MT) && defined(__APPLE__)
7
6
#include <libkern/OSAtomic.h>
12
11
-#include <Availability.h>
15
typedef int32_t hb_atomic_int_t;
18
#define hb_atomic_ptr_get(P) (OSMemoryBarrier (), (void *) *(P))
17
#define hb_atomic_ptr_impl_get(P) (OSMemoryBarrier (), (void *) *(P))
19
18
#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))
20
+#define hb_atomic_ptr_impl_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))
22
#define hb_atomic_ptr_impl_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))
25
#if __ppc64__ || __x86_64__ || __aarch64__
26
#define hb_atomic_ptr_impl_cmpexch(P,O,N) OSAtomicCompareAndSwap64Barrier ((int64_t) (O), (int64_t) (N), (int64_t*) (P))