Skip to content

Commit a3d0f7a

Browse files
committed
CoreFoundation: guard some declarations
These declarations are only implemented for the macOS target, so do not provide a declaration on other targets.
1 parent 39d47ff commit a3d0f7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CoreFoundation/Base.subproj/ForFoundationOnly.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ CF_EXPORT const void *_CFArrayCheckAndGetValueAtIndex(CFArrayRef array, CFIndex
465465
CF_EXPORT void _CFArrayReplaceValues(CFMutableArrayRef array, CFRange range, const void *_Nullable * _Nullable newValues, CFIndex newCount);
466466

467467

468+
#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED
468469
/* Enumeration
469470
Call CFStartSearchPathEnumeration() once, then call
470471
CFGetNextSearchPathEnumeration() one or more times with the returned state.
@@ -475,6 +476,7 @@ CF_EXPORT void _CFArrayReplaceValues(CFMutableArrayRef array, CFRange range, con
475476
typedef CFIndex CFSearchPathEnumerationState;
476477
CF_EXPORT CFSearchPathEnumerationState __CFStartSearchPathEnumeration(CFSearchPathDirectory dir, CFSearchPathDomainMask domainMask);
477478
CF_EXPORT CFSearchPathEnumerationState __CFGetNextSearchPathEnumeration(CFSearchPathEnumerationState state, UInt8 *path, CFIndex pathSize);
479+
#endif
478480

479481
/* For use by NSNumber and CFNumber.
480482
Hashing algorithm for CFNumber:

0 commit comments

Comments
 (0)