Skip to content

Commit 386e107

Browse files
committed
[runloop] Remind porter these stubs are required.
New platforms must define these types and functions; it is incorrect to not have #else cases here.
1 parent 8201c10 commit 386e107

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CoreFoundation/RunLoop.subproj/CFRunLoop.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ CF_INLINE kern_return_t __CFPortSetRemove(__CFPort port, __CFPortSet portSet) {
446446
CF_INLINE void __CFPortSetFree(__CFPortSet portSet) {
447447
close(portSet);
448448
}
449+
#else
450+
#error "CFPort* stubs for this platform must be implemented
449451
#endif
450452

451453
#if !defined(__MACTYPES__) && !defined(_OS_OSTYPES_H)
@@ -555,6 +557,8 @@ static kern_return_t mk_timer_cancel(HANDLE name, AbsoluteTime *result_time) {
555557
}
556558
return (int)res;
557559
}
560+
#else
561+
#error "mk_timer_* stubs for this platform must be implemented"
558562
#endif
559563

560564

0 commit comments

Comments
 (0)