Fix runloop integration for libdispatch from swift

This commit is contained in:
Niels Grewe 2019-11-26 11:11:38 +01:00
parent 7d1a5cceb6
commit ecd2d85cb9
No known key found for this signature in database
GPG key ID: 99779549298DB83E
5 changed files with 41 additions and 23 deletions

View file

@ -8,14 +8,12 @@
const NSTimeInterval kDelay = 0.01;
#if HAVE_LIBDISPATCH_RUNLOOP && __has_feature(blocks)
#if GS_USE_LIBDISPATCH_RUNLOOP && __has_feature(blocks)
# define DISPATCH_RL_INTEGRATION 1
# ifdef HAVE_DISPATCH_H
# if __has_include(<dispatch.h>)
# include <dispatch.h>
# else
# ifdef HAVE_DISPATCH_DISPATCH_H
# include <dispatch/dispatch.h>
# endif
# include <dispatch/dispatch.h>
# endif
#endif