From 75b27eaacc07ea14abf937e89cee0f337f3001fc Mon Sep 17 00:00:00 2001 From: Rob Purchase Date: Tue, 14 Jul 2009 20:04:26 +0000 Subject: Guard the Timeout API declarations with the correct #ifdef git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21869 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/kernel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h index 6cdd0b2db8..a21b0b3cee 100644 --- a/firmware/export/kernel.h +++ b/firmware/export/kernel.h @@ -221,6 +221,7 @@ int tick_add_task(void (*f)(void)); int tick_remove_task(void (*f)(void)); extern void tick_start(unsigned int interval_in_ms); +#ifdef INCLUDE_TIMEOUT_API struct timeout; /* timeout callback type @@ -240,6 +241,7 @@ struct timeout void timeout_register(struct timeout *tmo, timeout_cb_type callback, int ticks, intptr_t data); void timeout_cancel(struct timeout *tmo); +#endif /* INCLUDE_TIMEOUT_API */ #define STATE_NONSIGNALED 0 #define STATE_SIGNALED 1 -- cgit v1.2.3