Skip to content

Commit 52b21fb

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 26c7f11 commit 52b21fb

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
@@ -443,6 +443,8 @@ CF_INLINE kern_return_t __CFPortSetRemove(__CFPort port, __CFPortSet portSet) {
443443
CF_INLINE void __CFPortSetFree(__CFPortSet portSet) {
444444
close(portSet);
445445
}
446+
#else
447+
#error "CFPort* stubs for this platform must be implemented
446448
#endif
447449

448450
#if !defined(__MACTYPES__) && !defined(_OS_OSTYPES_H)
@@ -552,6 +554,8 @@ static kern_return_t mk_timer_cancel(HANDLE name, AbsoluteTime *result_time) {
552554
}
553555
return (int)res;
554556
}
557+
#else
558+
#error "mk_timer_* stubs for this platform must be implemented"
555559
#endif
556560

557561

0 commit comments

Comments
 (0)