Make LibuvEventPoll compatible with the latest libuv again

pull/454/head
Nils Maier 2015-03-23 13:18:21 +01:00
parent 11b25b7a55
commit 3f2b5dce2f
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ namespace {
delete reinterpret_cast<T*>(handle); delete reinterpret_cast<T*>(handle);
} }
#if !defined(UV_VERSION_MINOR) || UV_VERSION_MINOR <= 10 #if !defined(UV_VERSION_MINOR) || (UV_VERSION_MAJOR == 0 && UV_VERSION_MINOR <= 10)
static void timer_callback(uv_timer_t* handle, int status) static void timer_callback(uv_timer_t* handle, int status)
{ {
@ -78,7 +78,7 @@ namespace {
timer_callback(handle, 0); timer_callback(handle, 0);
} }
#else // !defined(UV_VERSION_MINOR) || UV_VERSION_MINOR <= 10 #else // !defined(UV_VERSION_MINOR) || (UV_VERSION_MAJOR == 0 && UV_VERSION_MINOR <= 10)
static void timer_callback(uv_timer_t* handle) static void timer_callback(uv_timer_t* handle)
{ {