@@ -184,7 +184,7 @@ CF_PRIVATE CFIndex __CFActiveProcessorCount(void);
184
184
#endif
185
185
#endif
186
186
187
- #if DEPLOYMENT_TARGET_WINDOWS
187
+ #if TARGET_OS_WIN32
188
188
#define __builtin_unreachable () do { } while (0)
189
189
#endif
190
190
@@ -400,14 +400,14 @@ extern const char *__CFgetenvIfNotRestricted(const char *n); // Returns NULL
400
400
CF_PRIVATE Boolean __CFProcessIsRestricted (void );
401
401
402
402
// This is really about the availability of C99. We don't have that on Windows, but we should everywhere else.
403
- #if DEPLOYMENT_TARGET_WINDOWS
403
+ #if TARGET_OS_WIN32
404
404
#define STACK_BUFFER_DECL (T , N , C ) T *N = (T *)_alloca((C) * sizeof(T))
405
405
#else
406
406
#define STACK_BUFFER_DECL (T , N , C ) T N[C]
407
407
#endif
408
408
409
409
410
- #if DEPLOYMENT_TARGET_WINDOWS
410
+ #if TARGET_OS_WIN32
411
411
#define SAFE_STACK_BUFFER_DECL (Type , Name , Count , Max ) Type *Name; BOOL __ ## Name ## WasMallocd = NO; if (sizeof(Type) * Count > Max) { Name = (Type *)malloc((Count) * sizeof(Type)); __ ## Name ## WasMallocd = YES; } else Name = (Count > 0) ? _alloca((Count) * sizeof(Type)) : NULL
412
412
#define SAFE_STACK_BUFFER_USE (Type , Name , Count , Max ) if (sizeof(Type) * Count > Max) { Name = (Type *)malloc((Count) * sizeof(Type)); __ ## Name ## WasMallocd = YES; } else Name = (Count > 0) ? _alloca((Count) * sizeof(Type)) : NULL
413
413
#define SAFE_STACK_BUFFER_CLEANUP (Name ) if (__ ## Name ## WasMallocd) free(Name)
@@ -421,7 +421,7 @@ CF_PRIVATE Boolean __CFProcessIsRestricted(void);
421
421
422
422
// Be sure to call this before your SAFE_STACK_BUFFER exits scope.
423
423
#define SAFE_STACK_BUFFER_CLEANUP (Name ) if (__ ## Name ## WasMallocd) free(Name)
424
- #endif // !DEPLOYMENT_TARGET_WINDOWS
424
+ #endif // !TARGET_OS_WIN32
425
425
426
426
427
427
CF_EXPORT void * __CFConstantStringClassReferencePtr ;
@@ -766,7 +766,7 @@ CF_EXPORT CFIndex _CFLengthAfterDeletingPathExtension(UniChar *unichars, CFIndex
766
766
CF_PRIVATE CFArrayRef _CFCreateCFArrayByTokenizingString (const char * values , char delimiter );
767
767
768
768
#if __BLOCKS__
769
- #if DEPLOYMENT_TARGET_WINDOWS
769
+ #if TARGET_OS_WIN32
770
770
#define DT_DIR 4
771
771
#define DT_REG 8
772
772
#define DT_LNK 10
@@ -806,7 +806,7 @@ extern void _CFRuntimeSetInstanceTypeIDAndIsa(CFTypeRef cf, CFTypeID newTypeID);
806
806
#define __has_attribute (...) 0
807
807
#endif
808
808
809
- #if DEPLOYMENT_TARGET_WINDOWS
809
+ #if TARGET_OS_WIN32
810
810
#define _CF_VISIBILITY_HIDDEN_ATTRIBUTE
811
811
#elif __has_attribute (visibility )
812
812
#define _CF_VISIBILITY_HIDDEN_ATTRIBUTE __attribute__((visibility("hidden")))
@@ -943,13 +943,13 @@ CF_PRIVATE bool __CFBinaryPlistIsArray(const uint8_t *databytes, uint64_t datale
943
943
#endif
944
944
945
945
// Need to use the _O_BINARY flag on Windows to get the correct behavior
946
- #if DEPLOYMENT_TARGET_WINDOWS
946
+ #if TARGET_OS_WIN32
947
947
#define CF_OPENFLGS (_O_BINARY|_O_NOINHERIT)
948
948
#else
949
949
#define CF_OPENFLGS (0)
950
950
#endif
951
951
952
- #if DEPLOYMENT_TARGET_WINDOWS
952
+ #if TARGET_OS_WIN32
953
953
954
954
// These are replacements for pthread calls on Windows
955
955
CF_EXPORT int _NS_pthread_main_np ();
@@ -975,12 +975,12 @@ CF_EXPORT bool _NS_pthread_equal(_CFThreadRef t1, _CFThreadRef t2);
975
975
#define pthread_main_np _CFIsMainThread
976
976
#endif
977
977
978
- #if DEPLOYMENT_TARGET_WINDOWS
978
+ #if TARGET_OS_WIN32
979
979
CF_PRIVATE const wchar_t * _CFDLLPath (void );
980
980
#endif
981
981
982
982
/* Buffer size for file pathname */
983
- #if DEPLOYMENT_TARGET_WINDOWS
983
+ #if TARGET_OS_WIN32
984
984
/// Use this constant for the size (in characters) of a buffer in which to hold a path. This size adds space for at least a couple of null terminators at the end of a buffer into which you copy up to kCFMaxPathLength characters.
985
985
#define CFMaxPathSize ((CFIndex)262)
986
986
/// Use this constant for the maximum length (in characters) of a path you want to copy into a buffer. This should be the maximum number of characters before the null terminator(s).
@@ -1026,7 +1026,7 @@ enum {
1026
1026
};
1027
1027
#endif
1028
1028
1029
- #if TARGET_OS_LINUX || DEPLOYMENT_TARGET_WINDOWS
1029
+ #if TARGET_OS_LINUX || TARGET_OS_WIN32
1030
1030
#define QOS_CLASS_USER_INITIATED DISPATCH_QUEUE_PRIORITY_HIGH
1031
1031
#define QOS_CLASS_DEFAULT DISPATCH_QUEUE_PRIORITY_DEFAULT
1032
1032
#define QOS_CLASS_UTILITY DISPATCH_QUEUE_PRIORITY_LOW
0 commit comments