darwin: fix 'directive in macro' compiler warning
This commit is contained in:
parent
778144f0b5
commit
ea8db64559
@ -66,14 +66,9 @@ void uv__fsevents_cb(uv_async_t* cb, int status) {
|
||||
handle = cb->data;
|
||||
|
||||
UV__FSEVENTS_WALK(handle, {
|
||||
if (handle->fd != -1) {
|
||||
#ifdef MAC_OS_X_VERSION_10_7
|
||||
handle->cb(handle, event->path, event->events, 0);
|
||||
#else
|
||||
handle->cb(handle, NULL, event->events, 0);
|
||||
#endif /* MAC_OS_X_VERSION_10_7 */
|
||||
}
|
||||
})
|
||||
if (handle->fd != -1)
|
||||
handle->cb(handle, event->path[0] ? event->path : NULL, event->events, 0);
|
||||
});
|
||||
|
||||
if ((handle->flags & (UV_CLOSING | UV_CLOSED)) == 0 && handle->fd == -1)
|
||||
uv__fsevents_close(handle);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user