Skip to content

Commit 15c558b

Browse files
committed
Revert "Fix compilation on MacOSX gcc 4.2.1 environment."
This reverts commit 5c5db29.
1 parent 582a005 commit 15c558b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Canvas.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ toBuffer(void *c, const uint8_t *data, unsigned len) {
133133
* EIO toBuffer callback.
134134
*/
135135

136-
void
136+
int
137137
Canvas::EIO_ToBuffer(eio_req *req) {
138138
closure_t *closure = (closure_t *) req->data;
139139

@@ -142,6 +142,7 @@ Canvas::EIO_ToBuffer(eio_req *req) {
142142
, toBuffer
143143
, closure);
144144

145+
return 0;
145146
}
146147

147148
/*

src/Canvas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Canvas: public node::ObjectWrap {
4343
static void SetHeight(Local<String> prop, Local<Value> val, const AccessorInfo &info);
4444
static Handle<Value> StreamPNGSync(const Arguments &args);
4545
static Local<Value> Error(cairo_status_t status);
46-
static void EIO_ToBuffer(eio_req *req);
46+
static int EIO_ToBuffer(eio_req *req);
4747
static int EIO_AfterToBuffer(eio_req *req);
4848
inline cairo_surface_t *surface(){ return _surface; }
4949
inline uint8_t *data(){ return cairo_image_surface_get_data(_surface); }

0 commit comments

Comments
 (0)