Skip to content

Commit c255f84

Browse files
authored
Merge pull request swiftlang#41901 from DougGregor/inline-in-headers
2 parents 6e0dbf8 + 7785bf4 commit c255f84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/swift/Runtime/DispatchShims.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// Provide wrappers with runtime checks to make sure that the dispatch functions
2222
// are only called on OS-es where they are supported
23-
dispatch_thread_override_info_s
23+
static inline dispatch_thread_override_info_s
2424
swift_dispatch_thread_get_current_override_qos_floor()
2525
{
2626
if (__builtin_available(macOS 9998, iOS 9998, tvOS 9998, watchOS 9998, *)) {
@@ -30,7 +30,7 @@ swift_dispatch_thread_get_current_override_qos_floor()
3030
return (dispatch_thread_override_info_s) {0};
3131
}
3232

33-
int
33+
static inline int
3434
swift_dispatch_thread_override_self(qos_class_t override_qos) {
3535

3636
if (__builtin_available(macOS 9998, iOS 9998, tvOS 9998, watchOS 9998, *)) {
@@ -40,7 +40,7 @@ swift_dispatch_thread_override_self(qos_class_t override_qos) {
4040
return 0;
4141
}
4242

43-
int
43+
static inline int
4444
swift_dispatch_lock_override_start_with_debounce(dispatch_lock_t *lock_addr,
4545
dispatch_tid_t expected_thread, qos_class_t override_to_apply) {
4646

@@ -51,7 +51,7 @@ swift_dispatch_lock_override_start_with_debounce(dispatch_lock_t *lock_addr,
5151
return 0;
5252
}
5353

54-
int
54+
static inline int
5555
swift_dispatch_lock_override_end(qos_class_t override_to_end) {
5656
if (__builtin_available(macOS 9998, iOS 9998, tvOS 9998, watchOS 9998, *)) {
5757
return dispatch_lock_override_end(override_to_end);

0 commit comments

Comments
 (0)