Skip to content

Commit 15c6b37

Browse files
committed
[android] Fix function signature to match usage in libdispatch.
The function signature in libdispatch doesn't use a dispatch_function_t so compiling for Android should have fail, since the Swift code uses the function without any parameters. See https://github.com/apple/swift-corelibs-libdispatch/blob/master/private/queue_private.h#L345 in which the function is defined with the signatured used in this change.
1 parent 6b972f5 commit 15c6b37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SwiftShims/DispatchOverlayShims.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static inline void _swift_dispatch_source_set_registration_handler(
239239
}
240240

241241
#if defined(__ANDROID__)
242-
extern void _dispatch_install_thread_detach_callback(dispatch_function_t cb);
242+
extern void _dispatch_install_thread_detach_callback(void (*cb)(void));
243243
#endif
244244

245245
static inline void _swift_dispatch_retain(dispatch_object_t object) {

0 commit comments

Comments
 (0)