From: root Date: Wed, 5 Dec 2007 00:09:35 +0000 (+0000) Subject: applied fix by chris brody X-Git-Tag: rel-1_6~1 X-Git-Url: https://git.llucax.com/software/libev.git/commitdiff_plain/614930116ff2c76f9954eee0cf4c5194ee4204e0?ds=sidebyside applied fix by chris brody --- 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);