]> git.sesse.net Git - vlc/blob - contrib/src/harfbuzz/harfbuzz-aarch64.patch
vout: remove dummy vout support (no longer used)
[vlc] / contrib / src / harfbuzz / harfbuzz-aarch64.patch
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
4 @@ -65,10 +65,8 @@
5  #elif !defined(HB_NO_MT) && defined(__APPLE__)
6  
7  #include <libkern/OSAtomic.h>
8 -#ifdef __MAC_OS_X_MIN_REQUIRED
9 +#ifdef __APPLE__
10  #include <AvailabilityMacros.h>
11 -#elif defined(__IPHONE_OS_MIN_REQUIRED)
12 -#include <Availability.h>
13  #endif
14  
15  typedef int32_t hb_atomic_int_t;
16 @@ -76,7 +74,11 @@
17  
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)
20 +#if __aarch64__
21 +#define hb_atomic_ptr_cmpexch(P,O,N)    OSAtomicCompareAndSwap64Barrier ((int64_t) (O), (int64_t) (N), (int64_t*) (P))
22 +#else
23  #define hb_atomic_ptr_cmpexch(P,O,N)   OSAtomicCompareAndSwapPtrBarrier ((void *) (O), (void *) (N), (void **) (P))
24 +#endif
25  #else
26  #if __ppc64__ || __x86_64__
27  #define hb_atomic_ptr_cmpexch(P,O,N)    OSAtomicCompareAndSwap64Barrier ((int64_t) (O), (int64_t) (N), (int64_t*) (P))