summaryrefslogtreecommitdiff
path: root/platform/default/async_task.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-03-10 10:13:13 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-03-10 15:03:18 -0800
commitb05e19b3890b25e476e46ec2544920687cbe0e2e (patch)
treebfbc06f84aa2a90f25dcffab4537c897895f55f3 /platform/default/async_task.cpp
parent6fdcbb61a40b3e637f778c31f773e370374b99c5 (diff)
downloadqtlocation-mapboxgl-b05e19b3890b25e476e46ec2544920687cbe0e2e.tar.gz
[node, glfw] Remove libuv 0.10 support
Diffstat (limited to 'platform/default/async_task.cpp')
-rw-r--r--platform/default/async_task.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/platform/default/async_task.cpp b/platform/default/async_task.cpp
index 05cf759863..5fa9db8d33 100644
--- a/platform/default/async_task.cpp
+++ b/platform/default/async_task.cpp
@@ -7,12 +7,6 @@
#include <uv.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 mbgl {
namespace util {
@@ -45,7 +39,7 @@ public:
}
private:
- static void asyncCallback(UV_ASYNC_PARAMS(handle)) {
+ static void asyncCallback(uv_async_t* handle) {
reinterpret_cast<Impl*>(handle->data)->task();
}