fix build with libuv 0.11

This commit is contained in:
Konstantin Käfer
2014-10-27 12:05:29 -04:00
parent af9f317c25
commit f50d8bbf3a
3 changed files with 17 additions and 22 deletions

View File

@@ -146,15 +146,9 @@ public:
private:
// uv async callbacks
#if UV_VERSION_MAJOR == 0 && UV_VERSION_MINOR <= 10
static void render(uv_async_t *async, int status);
static void terminate(uv_async_t *async, int status);
static void cleanup(uv_async_t *async, int status);
#else
static void render(uv_async_t *async);
static void terminate(uv_async_t *async);
static void cleanup(uv_async_t *async);
#endif
// Setup
void setup();

View File

@@ -29,7 +29,7 @@ public:
if (l == nullptr) {
#else
l = new uv_loop_t;
if (uv_loop_init(&l) != 0) {
if (uv_loop_init(l) != 0) {
#endif
throw std::runtime_error("failed to initialize loop");
}