Fix libdispatch integration compilation error on Windows.

This commit is contained in:
Frederik Seiffert 2021-03-12 15:50:07 +01:00 committed by Frederik Seiffert
parent f8ad54a6d7
commit 54ae296b69
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2021-03-09 Frederik Seiffert <frederik@algoriddim.com>
* Source/NSRunLoop.m:
Fix libdispatch integration compilation error on Windows.
2021-03-05 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSHTTPURLHandle.m:

View file

@ -807,7 +807,11 @@ static inline BOOL timerInvalidated(NSTimer *t)
GSMainQueueDrainer *drain =
[NSObject leak: [[GSMainQueueDrainer new] autorelease]];
[current addEvent: [GSMainQueueDrainer mainQueueFileDescriptor]
#ifdef _WIN32
type: ET_HANDLE
#else
type: ET_RDESC
#endif
watcher: drain
forMode: NSDefaultRunLoopMode];