mirror of https://github.com/aria2/aria2
parent
0c8a2659ea
commit
0b6501043a
|
@ -66,10 +66,21 @@ namespace {
|
||||||
delete reinterpret_cast<T*>(handle);
|
delete reinterpret_cast<T*>(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(UV_VERSION_MINOR) || UV_VERSION_MINOR <= 10
|
||||||
|
|
||||||
static void timer_callback(uv_timer_t* handle, int status)
|
static void timer_callback(uv_timer_t* handle, int status)
|
||||||
{
|
{
|
||||||
uv_stop(handle->loop);
|
uv_stop(handle->loop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else // !defined(UV_VERSION_MINOR) || UV_VERSION_MINOR <= 10
|
||||||
|
|
||||||
|
static void timer_callback(uv_timer_t* handle)
|
||||||
|
{
|
||||||
|
uv_stop(handle->loop);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // !defined(UV_VERSION_MINOR) || UV_VERSION_MINOR <= 10
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace aria2 {
|
namespace aria2 {
|
||||||
|
|
Loading…
Reference in New Issue