From 8eaf72b24298b3c7c6e33812b1410b1ee3bb33c6 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 11 Nov 2007 01:07:35 +0000 Subject: fix bug --- ev.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ev.h') diff --git a/ev.h b/ev.h index 369e45c..fec2ca4 100644 --- a/ev.h +++ b/ev.h @@ -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); -- cgit v1.2.3