summaryrefslogtreecommitdiff
path: root/include/rtthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rtthread.h')
-rw-r--r--include/rtthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtthread.h b/include/rtthread.h
index d719e4bfb4..2037645e44 100644
--- a/include/rtthread.h
+++ b/include/rtthread.h
@@ -164,7 +164,7 @@ void rt_thread_inited_sethook (void (*hook)(rt_thread_t thread));
* idle thread interface
*/
void rt_thread_idle_init(void);
-#ifdef RT_USING_HOOK
+#if defined(RT_USING_HOOK) || defined(RT_USING_IDLE_HOOK)
void rt_thread_idle_sethook(void (*hook)(void));
#endif
void rt_thread_idle_excute(void);