Skip to content

Commit

Permalink
Revert "Fix compilation on MacOSX gcc 4.2.1 environment."
Browse files Browse the repository at this point in the history
This reverts commit 5c5db29.
  • Loading branch information
tj committed Aug 30, 2011
1 parent 582a005 commit 15c558b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Canvas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ toBuffer(void *c, const uint8_t *data, unsigned len) {
* EIO toBuffer callback.
*/

void
int
Canvas::EIO_ToBuffer(eio_req *req) {
closure_t *closure = (closure_t *) req->data;

Expand All @@ -142,6 +142,7 @@ Canvas::EIO_ToBuffer(eio_req *req) {
, toBuffer
, closure);

return 0;
}

/*
Expand Down
2 changes: 1 addition & 1 deletion src/Canvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Canvas: public node::ObjectWrap {
static void SetHeight(Local<String> prop, Local<Value> val, const AccessorInfo &info);
static Handle<Value> StreamPNGSync(const Arguments &args);
static Local<Value> Error(cairo_status_t status);
static void EIO_ToBuffer(eio_req *req);
static int 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); }
Expand Down

0 comments on commit 15c558b

Please sign in to comment.