Skip to content

Commit

Permalink
darwin: fix 'directive in macro' compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Sep 18, 2012
1 parent 778144f commit ea8db64
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/unix/fsevents.c
Expand Up @@ -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);
Expand Down

0 comments on commit ea8db64

Please sign in to comment.