X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/e73e5ae567e0e8053897ff051ba7bb514cf9007d..c4977e2742acfd90d4c4abd068f1c9e284951ef5:/ev.c diff --git a/ev.c b/ev.c index 8fd359e..dedd4f3 100644 --- a/ev.c +++ b/ev.c @@ -128,7 +128,11 @@ #define PID_HASHSIZE 16 /* size of pid hash table, must be power of two */ /*#define CLEANUP_INTERVAL 300. /* how often to try to free memory and re-check fds */ -#include "ev.h" +#ifdef EV_H +# include EV_H +#else +# include "ev.h" +#endif #if __GNUC__ >= 3 # define expect(expr,value) __builtin_expect ((expr),(value)) @@ -946,7 +950,7 @@ call_pending (EV_P) if (p->w) { p->w->pending = 0; - p->w->cb (EV_A_ p->w, p->events); + EV_CB_INVOKE (p->w, p->events); } } }