summaryrefslogtreecommitdiff
path: root/platform/default/timer.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/timer.cpp
parent6fdcbb61a40b3e637f778c31f773e370374b99c5 (diff)
downloadqtlocation-mapboxgl-b05e19b3890b25e476e46ec2544920687cbe0e2e.tar.gz
[node, glfw] Remove libuv 0.10 support
Diffstat (limited to 'platform/default/timer.cpp')
-rw-r--r--platform/default/timer.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/platform/default/timer.cpp b/platform/default/timer.cpp
index 473f059133..cd0e6da6aa 100644
--- a/platform/default/timer.cpp
+++ b/platform/default/timer.cpp
@@ -4,12 +4,6 @@
#include <uv.h>
-#if UV_VERSION_MAJOR == 0 && UV_VERSION_MINOR <= 10
-#define UV_TIMER_PARAMS(timer) uv_timer_t *timer, int
-#else
-#define UV_TIMER_PARAMS(timer) uv_timer_t *timer
-#endif
-
namespace mbgl {
namespace util {
@@ -46,7 +40,7 @@ public:
}
private:
- static void timerCallback(UV_TIMER_PARAMS(handle)) {
+ static void timerCallback(uv_timer_t* handle) {
reinterpret_cast<Impl*>(handle->data)->cb();
}