… | |
… | |
45 | # include EV_EVENT_H |
45 | # include EV_EVENT_H |
46 | #else |
46 | #else |
47 | # include "event.h" |
47 | # include "event.h" |
48 | #endif |
48 | #endif |
49 | |
49 | |
|
|
50 | /* same definition as in ev.c */ |
|
|
51 | #define EV_TV_SET(tv,t) do { tv.tv_sec = (long)t; tv.tv_usec = (long)((t - tv.tv_sec) * 1e6); } while (0) |
|
|
52 | |
50 | #if EV_MULTIPLICITY |
53 | #if EV_MULTIPLICITY |
51 | # define dLOOPev struct ev_loop *loop = (struct ev_loop *)ev->ev_base |
54 | # define dLOOPev struct ev_loop *loop = (struct ev_loop *)ev->ev_base |
52 | # define dLOOPbase struct ev_loop *loop = (struct ev_loop *)base |
55 | # define dLOOPbase struct ev_loop *loop = (struct ev_loop *)base |
53 | #else |
56 | #else |
54 | # define dLOOPev |
57 | # define dLOOPev |