From 5c5db2972f4e2803ada9acf76afe81aec2b67b6c Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Sun, 28 Aug 2011 16:09:05 +0900 Subject: [PATCH] Fix compilation on MacOSX gcc 4.2.1 environment. --- src/Canvas.cc | 3 +-- src/Canvas.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Canvas.cc b/src/Canvas.cc index d487357..8ff622a 100644 --- a/src/Canvas.cc +++ b/src/Canvas.cc @@ -133,7 +133,7 @@ toBuffer(void *c, const uint8_t *data, unsigned len) { * EIO toBuffer callback. */ -int +void Canvas::EIO_ToBuffer(eio_req *req) { closure_t *closure = (closure_t *) req->data; @@ -142,7 +142,6 @@ Canvas::EIO_ToBuffer(eio_req *req) { , toBuffer , closure); - return 0; } /* diff --git a/src/Canvas.h b/src/Canvas.h index a2c03b1..18d0747 100644 --- a/src/Canvas.h +++ b/src/Canvas.h @@ -43,7 +43,7 @@ class Canvas: public node::ObjectWrap { static void SetHeight(Local prop, Local val, const AccessorInfo &info); static Handle StreamPNGSync(const Arguments &args); static Local Error(cairo_status_t status); - static int EIO_ToBuffer(eio_req *req); + static void EIO_ToBuffer(eio_req *req); static int EIO_AfterToBuffer(eio_req *req); inline cairo_surface_t *surface(){ return _surface; } inline uint8_t *data(){ return cairo_image_surface_get_data(_surface); }