diff --git a/configure b/configure index b818faa07..378adcf29 100755 --- a/configure +++ b/configure @@ -30,7 +30,7 @@ case ${MASON_PLATFORM} in LIBJPEG_VERSION=v9a OPENSSL_VERSION=1.0.1l LIBCURL_VERSION=7.40.0 - LIBUV_VERSION=0.11.29 + LIBUV_VERSION=1.4.0 ZLIB_VERSION=system BOOST_VERSION=1.57.0 NUNICODE_VERSION=1.5.1 diff --git a/include/mbgl/util/uv-messenger.h b/include/mbgl/util/uv-messenger.h index 946867fe8..35c5ce218 100644 --- a/include/mbgl/util/uv-messenger.h +++ b/include/mbgl/util/uv-messenger.h @@ -1,12 +1,12 @@ #ifndef MBGL_UTIL_UV_MESSENGER #define MBGL_UTIL_UV_MESSENGER +#include + #ifdef __cplusplus extern "C" { #endif -#include - typedef struct uv_messenger_s uv_messenger_t; typedef void (*uv_messenger_cb)(void *arg); typedef void (*uv_messenger_stop_cb)(uv_messenger_t *msgr); diff --git a/src/mbgl/util/uv-channel.h b/src/mbgl/util/uv-channel.h index ea5c279f6..0a0d70647 100644 --- a/src/mbgl/util/uv-channel.h +++ b/src/mbgl/util/uv-channel.h @@ -1,12 +1,12 @@ #ifndef MBGL_UTIL_UV_CHANNEL #define MBGL_UTIL_UV_CHANNEL +#include + #ifdef __cplusplus extern "C" { #endif -#include - // Taken from http://navaneeth.github.io/blog/2013/08/02/channels-in-libuv/ typedef struct uv_chan_s uv_chan_t; diff --git a/src/mbgl/util/uv-worker.h b/src/mbgl/util/uv-worker.h index 5640bfd14..65ad42edb 100644 --- a/src/mbgl/util/uv-worker.h +++ b/src/mbgl/util/uv-worker.h @@ -1,14 +1,14 @@ #ifndef MBGL_UTIL_UV_WORKER #define MBGL_UTIL_UV_WORKER -#ifdef __cplusplus -extern "C" { -#endif +#include #include #include -#include +#ifdef __cplusplus +extern "C" { +#endif typedef struct uv_worker_s uv_worker_t;