From ea8db64559680b589196b1ae01152c35d2232c41 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 18 Sep 2012 13:14:14 +0200 Subject: [PATCH] darwin: fix 'directive in macro' compiler warning --- src/unix/fsevents.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/unix/fsevents.c b/src/unix/fsevents.c index 17dd11afa8..9f1a7db3eb 100644 --- a/src/unix/fsevents.c +++ b/src/unix/fsevents.c @@ -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);