File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -195,23 +195,31 @@ typedef struct __CFRuntimeBase {
195
195
uintptr_t _cfisa ;
196
196
uintptr_t _swift_rc ;
197
197
// This is for CF's use, and must match _NSCFType layout
198
+ #if defined(__LP64__ ) || defined(__LLP64__ )
198
199
_Atomic (uint64_t ) _cfinfoa ;
200
+ #else
201
+ _Atomic (uint32_t ) _cfinfoa ;
202
+ #endif
199
203
} CFRuntimeBase ;
200
204
205
+ #if defined(__LP64__ ) || defined(__LLP64__ )
201
206
#define INIT_CFRUNTIME_BASE (...) {0, _CF_CONSTANT_OBJECT_STRONG_RC, 0x0000000000000080ULL}
207
+ #else
208
+ #define INIT_CFRUNTIME_BASE (...) {0, _CF_CONSTANT_OBJECT_STRONG_RC, 0x00000080UL}
209
+ #endif
202
210
203
211
#else
204
212
205
213
typedef struct __CFRuntimeBase {
206
214
uintptr_t _cfisa ;
207
- #if __LP64__
215
+ #if defined( __LP64__ ) || defined( __LLP64__ )
208
216
_Atomic (uint64_t ) _cfinfoa ;
209
217
#else
210
218
_Atomic (uint32_t ) _cfinfoa ;
211
219
#endif
212
220
} CFRuntimeBase ;
213
221
214
- #if __LP64__
222
+ #if defined( __LP64__ ) || defined( __LLP64__ )
215
223
#define INIT_CFRUNTIME_BASE (...) {0, 0x0000000000000080ULL}
216
224
#else
217
225
#define INIT_CFRUNTIME_BASE (...) {0, 0x00000080UL}
Original file line number Diff line number Diff line change @@ -156,7 +156,11 @@ struct __CFConstStr {
156
156
struct {
157
157
uintptr_t _cfisa ;
158
158
uintptr_t _swift_rc ;
159
+ #if defined(__LP64__ ) || defined(__LLP64__ )
159
160
uint64_t _cfinfoa ;
161
+ #else
162
+ uint32_t _cfinfoa ;
163
+ #endif
160
164
} _base ;
161
165
uint8_t * _ptr ;
162
166
#if defined(__LP64__ ) && defined(__BIG_ENDIAN__ )
You can’t perform that action at this time.
0 commit comments