]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/fontconfig/macos_arm_fccache.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / fontconfig / macos_arm_fccache.patch
1 src/fcatomic.h | 12 ++----------
2 1 file changed, 2 insertions(+), 10 deletions(-)
3
4 diff --git a/src/fcatomic.h b/src/fcatomic.h
5 index cc28a883c13fadf2ad9900586a9cae3097354671..657a5f551adfc37415231b7002746ad6cd031c78 100644
6 --- a/src/fcatomic.h
7 +++ b/src/fcatomic.h
8 @@ -70,24 +70,16 @@ typedef LONG fc_atomic_int_t;
9 #elif !defined(FC_NO_MT) && defined(__APPLE__)
10
11 #include <libkern/OSAtomic.h>
12 -#ifdef __MAC_OS_X_MIN_REQUIRED
13 #include <AvailabilityMacros.h>
14 -#elif defined(__IPHONE_OS_MIN_REQUIRED)
15 -#include <Availability.h>
16 -#endif
17
18 typedef int fc_atomic_int_t;
19 #define fc_atomic_int_add(AI, V) (OSAtomicAdd32Barrier ((V), &(AI)) - (V))
20
21 #define fc_atomic_ptr_get(P) (OSMemoryBarrier (), (void *) *(P))
22 -#if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4 || __IPHONE_VERSION_MIN_REQUIRED >= 20100)
23 +#if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4 || __IPHONE_OS_VERSION_MIN_REQUIRED >= 20100)
24 #define fc_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwapPtrBarrier ((void *) (O), (void *) (N), (void **) (P))
25 #else
26 -#if __ppc64__ || __x86_64__
27 -#define fc_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwap64Barrier ((int64_t) (O), (int64_t) (N), (int64_t*) (P))
28 -#else
29 -#define fc_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwap32Barrier ((int32_t) (O), (int32_t) (N), (int32_t*) (P))
30 -#endif
31 +#error "Your macOS / iOS targets are too old"
32 #endif
33
34 #elif !defined(FC_NO_MT) && defined(HAVE_INTEL_ATOMIC_PRIMITIVES)