@@ -59,6 +59,8 @@ CF_EXPORT const char **_CFGetProcessPath(void);
5959CF_EXPORT const char * * _CFGetProgname (void );
6060
6161#if !TARGET_OS_WIN32
62+ #include <sys/types.h>
63+
6264CF_EXPORT void _CFGetUGIDs (uid_t * euid , gid_t * egid );
6365CF_EXPORT uid_t _CFGetEUID (void );
6466CF_EXPORT uid_t _CFGetEGID (void );
@@ -492,8 +494,8 @@ void CFCharacterSetInitInlineBuffer(CFCharacterSetRef cset, CFCharacterSetInline
492494 @result true, if the value is in the character set, otherwise false.
493495 */
494496#if defined(CF_INLINE )
495- CF_INLINE bool CFCharacterSetInlineBufferIsLongCharacterMember (const CFCharacterSetInlineBuffer * buffer , UTF32Char character ) {
496- bool isInverted = ((0 == (buffer -> flags & kCFCharacterSetIsInverted )) ? false : true );
497+ CF_INLINE Boolean CFCharacterSetInlineBufferIsLongCharacterMember (const CFCharacterSetInlineBuffer * buffer , UTF32Char character ) {
498+ Boolean isInverted = ((0 == (buffer -> flags & kCFCharacterSetIsInverted )) ? FALSE : TRUE );
497499
498500 if ((character >= buffer -> rangeStart ) && (character < buffer -> rangeLimit )) {
499501 if ((character > 0xFFFF ) || (0 != (buffer -> flags & kCFCharacterSetNoBitmapAvailable ))) return (CFCharacterSetIsLongCharacterMember (buffer -> cset , character ) != 0 );
@@ -569,6 +571,7 @@ CF_EXPORT CFMessagePortRef _CFMessagePortCreateLocalEx(CFAllocatorRef allocator,
569571#if _POSIX_THREADS
570572#include <pthread.h>
571573#endif
574+ #include <time.h>
572575
573576CF_INLINE CFAbsoluteTime _CFAbsoluteTimeFromFileTimeSpec (struct timespec ts ) {
574577 return (CFAbsoluteTime )((CFTimeInterval )ts .tv_sec - kCFAbsoluteTimeIntervalSince1970 ) + (1.0e-9 * (CFTimeInterval )ts .tv_nsec );
@@ -592,10 +595,10 @@ CF_INLINE struct timespec _CFFileTimeSpecFromAbsoluteTime(CFAbsoluteTime at) {
592595}
593596
594597// The 'filtered' function below is preferred to this older one
595- CF_EXPORT bool _CFPropertyListCreateSingleValue (CFAllocatorRef allocator , CFDataRef data , CFOptionFlags option , CFStringRef keyPath , CFPropertyListRef * value , CFErrorRef * error );
598+ CF_EXPORT Boolean _CFPropertyListCreateSingleValue (CFAllocatorRef allocator , CFDataRef data , CFOptionFlags option , CFStringRef keyPath , CFPropertyListRef * value , CFErrorRef * error );
596599
597600// Returns a subset of the property list, only including the keyPaths in the CFSet. If the top level object is not a dictionary, you will get back an empty dictionary as the result.
598- CF_EXPORT bool _CFPropertyListCreateFiltered (CFAllocatorRef allocator , CFDataRef data , CFOptionFlags option , CFSetRef keyPaths , CFPropertyListRef * value , CFErrorRef * error ) API_AVAILABLE (macos (10.8 ), ios (6.0 ), watchos (2.0 ), tvos (9.0 ));
601+ CF_EXPORT Boolean _CFPropertyListCreateFiltered (CFAllocatorRef allocator , CFDataRef data , CFOptionFlags option , CFSetRef keyPaths , CFPropertyListRef * value , CFErrorRef * error ) API_AVAILABLE (macos (10.8 ), ios (6.0 ), watchos (2.0 ), tvos (9.0 ));
599602
600603// Returns a set of the keys of the top-level dictionary of a plist. Optimized for bplist (though it works with XML too). Only supports string keys.
601604CF_EXPORT CFSetRef _CFPropertyListCopyTopLevelKeys (CFAllocatorRef allocator , CFDataRef data , CFOptionFlags option , CFErrorRef * outError ) API_AVAILABLE (macos (10.13 ), ios (11.0 ), watchos (4.0 ), tvos (11.0 ));
0 commit comments