[core] bump libuv to 1.7.5 across all platforms

UV_ASYNC_PARAMS and UV_TIMER_PARAMS for libuv <= 0.10 compatibility

use st_mtim.tv_sec in libuv > 0.10.x
This commit is contained in:
Mike Morris
2015-10-13 14:27:09 -04:00
parent 5b9deae957
commit 62595a9b39
12 changed files with 52 additions and 45 deletions

View File

@@ -6,6 +6,12 @@
#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 {
@@ -335,12 +341,8 @@ NodeMap::NodeMap(v8::Local<v8::Object> options) :
async(new uv_async_t) {
async->data = this;
#if UV_VERSION_MAJOR == 0 && UV_VERSION_MINOR <= 10
uv_async_init(uv_default_loop(), async, [](uv_async_t *as, int) {
#else
uv_async_init(uv_default_loop(), async, [](uv_async_t *as) {
#endif
reinterpret_cast<NodeMap *>(as->data)->renderFinished();
uv_async_init(uv_default_loop(), async, [](UV_ASYNC_PARAMS(handle)) {
reinterpret_cast<NodeMap *>(handle->data)->renderFinished();
});
// Make sure the async handle doesn't keep the loop alive.