diff options
author | root <root> | 2007-11-11 01:07:35 +0000 |
---|---|---|
committer | root <root> | 2007-11-11 01:07:35 +0000 |
commit | 8eaf72b24298b3c7c6e33812b1410b1ee3bb33c6 (patch) | |
tree | 8ccd4b8fd65a550857a37c8d625b272ed1d504b8 /ev.h | |
parent | 6778edc72c8101697c478c40f104fe75c97e336e (diff) |
fix bug
Diffstat (limited to 'ev.h')
-rw-r--r-- | ev.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -48,6 +48,10 @@ typedef double ev_tstamp; # define EV_MULTIPLICITY 1 #endif +#ifndef EV_PERIODICS +# define EV_PERIODICS 1 +#endif + /* support multiple event loops? */ #if EV_MULTIPLICITY struct ev_loop; @@ -370,9 +374,11 @@ void ev_timer_stop (EV_P_ struct ev_timer *w); /* stops if active and no repeat, restarts if active and repeating, starts if inactive and repeating */ void ev_timer_again (EV_P_ struct ev_timer *w); +#if EV_PERIODICS void ev_periodic_start (EV_P_ struct ev_periodic *w); void ev_periodic_stop (EV_P_ struct ev_periodic *w); void ev_periodic_again (EV_P_ struct ev_periodic *w); +#endif void ev_idle_start (EV_P_ struct ev_idle *w); void ev_idle_stop (EV_P_ struct ev_idle *w); |