Skip to content

Commit 0131ae3

Browse files
committed
Add missing DISPATCH_COCOA_COMPAT preprocessor symbol.
_dispatch_runloop_queue_xref_dispose is declared in src/queue_internal.h but the declaration is hidden behind DISPATCH_COCOA_COMPAT. This means the call to _dispatch_runloop_queue_xref_dispose must also be put behind this preprocessor symbol.
1 parent c992dac commit 0131ae3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/object.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,11 @@ _dispatch_xref_dispose(dispatch_object_t dou)
202202
_dispatch_mach_xref_dispose(dou._dm);
203203
break;
204204
#endif
205+
#if DISPATCH_COCOA_COMPAT
205206
case DISPATCH_QUEUE_RUNLOOP_TYPE:
206207
_dispatch_runloop_queue_xref_dispose(dou._dl);
207208
break;
209+
#endif
208210
}
209211
return _dispatch_release_tailcall(dou._os_obj);
210212
}

0 commit comments

Comments
 (0)