diff options
Diffstat (limited to 'platform/node/src/node_map.cpp')
-rw-r--r-- | platform/node/src/node_map.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/platform/node/src/node_map.cpp b/platform/node/src/node_map.cpp index f6b672efee..686766ed19 100644 --- a/platform/node/src/node_map.cpp +++ b/platform/node/src/node_map.cpp @@ -14,12 +14,6 @@ #include <unistd.h> -#if UV_VERSION_MAJOR == 0 && UV_VERSION_MINOR <= 10 -#define UV_ASYNC_PARAMS(handle) uv_async_t *handle, int -#else -#define UV_ASYNC_PARAMS(handle) uv_async_t *handle -#endif - namespace node_mbgl { struct NodeMap::RenderOptions { @@ -975,7 +969,7 @@ NodeMap::NodeMap(v8::Local<v8::Object> options) }); async->data = this; - uv_async_init(uv_default_loop(), async, [](UV_ASYNC_PARAMS(h)) { + uv_async_init(uv_default_loop(), async, [](uv_async_t* h) { reinterpret_cast<NodeMap *>(h->data)->renderFinished(); }); |