From 614930116ff2c76f9954eee0cf4c5194ee4204e0 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 5 Dec 2007 00:09:35 +0000 Subject: applied fix by chris brody --- ev++.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ev++.h b/ev++.h index cac1d03..d7b4502 100644 --- a/ev++.h +++ b/ev++.h @@ -22,7 +22,7 @@ namespace ev { ev_init (this, 0); } - void set_ (void *object, void (*cb)(ev_watcher *w, int revents)) + void set_ (void *object, void (*cb)(EV_P_ ev_watcher *w, int revents)) { this->data = object; ev_set_cb (static_cast(this), cb); @@ -35,7 +35,7 @@ namespace ev { } template - static void method_thunk (ev_watcher *w, int revents) + static void method_thunk (EV_P_ ev_watcher *w, int revents) { watcher *self = static_cast(w); K *obj = static_cast(self->data); @@ -49,7 +49,7 @@ namespace ev { } template - static void const_method_thunk (ev_watcher *w, int revents) + static void const_method_thunk (EV_P_ ev_watcher *w, int revents) { watcher *self = static_cast(w); K *obj = static_cast(self->data); @@ -63,7 +63,7 @@ namespace ev { } template - static void function_thunk (ev_watcher *w, int revents) + static void function_thunk (EV_P_ ev_watcher *w, int revents) { watcher *self = static_cast(w); function (*self, revents); -- cgit v1.2.3