fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


 src/fcatomic.h |   12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

New commits:
commit 6def66164a36eed968aae872d76acfac3173d44a
Author: Nirbheek Chauhan <nirbheek@xxxxxxxxxxxxxxx>
Date:   Sat Feb 22 03:57:50 2020 +0530

    fcatomic: Fix EXC_BAD_ACCESS on iOS ARM64
    iPhone 2.1 was released a long time ago, and the macro for checking
    the target iOS SDK version has changed. We can simplify everything and
    do a very basic check.

diff --git a/src/fcatomic.h b/src/fcatomic.h
index cc28a88..657a5f5 100644
--- a/src/fcatomic.h
+++ b/src/fcatomic.h
@@ -70,24 +70,16 @@ typedef LONG fc_atomic_int_t;
 #elif !defined(FC_NO_MT) && defined(__APPLE__)
 #include <libkern/OSAtomic.h>
 #include <AvailabilityMacros.h>
-#elif defined(__IPHONE_OS_MIN_REQUIRED)
-#include <Availability.h>
 typedef int fc_atomic_int_t;
 #define fc_atomic_int_add(AI, V)	(OSAtomicAdd32Barrier ((V), &(AI)) - (V))
 #define fc_atomic_ptr_get(P)		(OSMemoryBarrier (), (void *) *(P))
 #define fc_atomic_ptr_cmpexch(P,O,N)	OSAtomicCompareAndSwapPtrBarrier ((void *) (O), (void *) (N), (void **) (P))
-#if __ppc64__ || __x86_64__
-#define fc_atomic_ptr_cmpexch(P,O,N)	OSAtomicCompareAndSwap64Barrier ((int64_t) (O), (int64_t) (N), (int64_t*) (P))
-#define fc_atomic_ptr_cmpexch(P,O,N)	OSAtomicCompareAndSwap32Barrier ((int32_t) (O), (int32_t) (N), (int32_t*) (P))
+#error "Your macOS / iOS targets are too old"
 #elif !defined(FC_NO_MT) && defined(HAVE_INTEL_ATOMIC_PRIMITIVES)
Fontconfig mailing list

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux