diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2009-07-14 20:04:26 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2009-07-14 20:04:26 +0000 |
commit | 75b27eaacc07ea14abf937e89cee0f337f3001fc (patch) | |
tree | 2dacbe6245fb15349225db776b116ba3e3619c7a /firmware | |
parent | 04ab67d4317bd155d9f8647b43964c3b62280e2b (diff) | |
download | rockbox-75b27eaacc07ea14abf937e89cee0f337f3001fc.tar.gz rockbox-75b27eaacc07ea14abf937e89cee0f337f3001fc.zip |
Guard the Timeout API declarations with the correct #ifdef
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21869 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/kernel.h | 2 |
1 files changed, 2 insertions, 0 deletions
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)); | |||
221 | int tick_remove_task(void (*f)(void)); | 221 | int tick_remove_task(void (*f)(void)); |
222 | extern void tick_start(unsigned int interval_in_ms); | 222 | extern void tick_start(unsigned int interval_in_ms); |
223 | 223 | ||
224 | #ifdef INCLUDE_TIMEOUT_API | ||
224 | struct timeout; | 225 | struct timeout; |
225 | 226 | ||
226 | /* timeout callback type | 227 | /* timeout callback type |
@@ -240,6 +241,7 @@ struct timeout | |||
240 | void timeout_register(struct timeout *tmo, timeout_cb_type callback, | 241 | void timeout_register(struct timeout *tmo, timeout_cb_type callback, |
241 | int ticks, intptr_t data); | 242 | int ticks, intptr_t data); |
242 | void timeout_cancel(struct timeout *tmo); | 243 | void timeout_cancel(struct timeout *tmo); |
244 | #endif /* INCLUDE_TIMEOUT_API */ | ||
243 | 245 | ||
244 | #define STATE_NONSIGNALED 0 | 246 | #define STATE_NONSIGNALED 0 |
245 | #define STATE_SIGNALED 1 | 247 | #define STATE_SIGNALED 1 |