diff --git a/CoreFoundation/Base.subproj/CFRuntime.h b/CoreFoundation/Base.subproj/CFRuntime.h index 6318834e60..66f7a8c949 100644 --- a/CoreFoundation/Base.subproj/CFRuntime.h +++ b/CoreFoundation/Base.subproj/CFRuntime.h @@ -194,19 +194,11 @@ typedef struct __CFRuntimeBase { // This matches the isa and retain count storage in Swift uintptr_t _cfisa; uintptr_t _swift_rc; - // This is for CF's use, and must match _NSCFType layout -#if defined(__LP64__) || defined(__LLP64__) + // This is for CF's use, and must match __NSCFType/_CFInfo layout _Atomic(uint64_t) _cfinfoa; -#else - _Atomic(uint32_t) _cfinfoa; -#endif } CFRuntimeBase; -#if defined(__LP64__) || defined(__LLP64__) #define INIT_CFRUNTIME_BASE(...) {0, _CF_CONSTANT_OBJECT_STRONG_RC, 0x0000000000000080ULL} -#else -#define INIT_CFRUNTIME_BASE(...) {0, _CF_CONSTANT_OBJECT_STRONG_RC, 0x00000080UL} -#endif #else diff --git a/CoreFoundation/String.subproj/CFString.h b/CoreFoundation/String.subproj/CFString.h index e7e7a43de4..8fb912ae1a 100644 --- a/CoreFoundation/String.subproj/CFString.h +++ b/CoreFoundation/String.subproj/CFString.h @@ -165,11 +165,7 @@ struct __CFConstStr { struct { uintptr_t _cfisa; uintptr_t _swift_rc; -#if defined(__LP64__) || defined(__LLP64__) uint64_t _cfinfoa; -#else // 32-bit: - uint32_t _cfinfoa; -#endif // defined(__LP64__) || defined(__LLP64__) } _base; uint8_t *_ptr; #if defined(__LP64__) && defined(__BIG_ENDIAN__)