From 05870ed62edd8728d6d732f60d6b7e149d45e6f4 Mon Sep 17 00:00:00 2001 From: Primiano Tucci Date: Wed, 2 Apr 2014 11:35:27 +0100 Subject: [PATCH] Use __aarch64__ for 64-bit ARM detection, not __arm64__ Many GCC versions don't define __arm64__ --- src/hb-atomic-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-atomic-private.hh b/src/hb-atomic-private.hh index 1c4e1202..60cbcf91 100644 --- a/src/hb-atomic-private.hh +++ b/src/hb-atomic-private.hh @@ -82,7 +82,7 @@ typedef int32_t hb_atomic_int_t; #if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4 || __IPHONE_VERSION_MIN_REQUIRED >= 20100) #define hb_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwapPtrBarrier ((void *) (O), (void *) (N), (void **) (P)) #else -#if __ppc64__ || __x86_64__ || __arm64__ +#if __ppc64__ || __x86_64__ || __aarch64__ #define hb_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwap64Barrier ((int64_t) (O), (int64_t) (N), (int64_t*) (P)) #else #define hb_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwap32Barrier ((int32_t) (O), (int32_t) (N), (int32_t*) (P)) -- GitLab