Skip to content

Commit ed27ebe

Browse files
3405691582rokhinip
authored andcommitted
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. Signed-off-by: Rokhini Prabhu <rokhinip@apple.com>
1 parent 753ca52 commit ed27ebe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/object.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,11 @@ _dispatch_xref_dispose(dispatch_object_t dou)
226226
_dispatch_mach_xref_dispose(dou._dm);
227227
break;
228228
#endif
229+
#if DISPATCH_COCOA_COMPAT
229230
case DISPATCH_QUEUE_RUNLOOP_TYPE:
230231
_dispatch_runloop_queue_xref_dispose(dou._dl);
231232
break;
232-
}
233+
#endif
233234
}
234235
return _dispatch_release_tailcall(dou._os_obj);
235236
}

0 commit comments

Comments
 (0)