diff options
| author | geniusgogo <[email protected]> | 2017-05-23 00:01:05 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-05-23 00:01:05 +0800 |
| commit | 387bbcc44fbd42254da931139a4a5551f8a85200 (patch) | |
| tree | 55da5f5f2a010680ac2af249051108870293cc07 /include/rtthread.h | |
| parent | 3c14a8867ddd0b4ed74cb07b0cf9975f4b32515f (diff) | |
Update rtthread.h
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 2 |
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); |
