diff --git a/include/rtthread.h b/include/rtthread.h index e43c3af1ea..0e98753c6f 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -14,8 +14,7 @@ * 2006-08-10 Bernard add version information * 2007-01-28 Bernard rename RT_OBJECT_Class_Static to RT_Object_Class_Static * 2007-03-03 Bernard clean up the definitions to rtdef.h - * 2010-04-11 yi.qiu add module feature - + * 2010-04-11 yi.qiu add module feature */ #ifndef __RT_THREAD_H__ diff --git a/src/rtm.c b/src/rtm.c index f6e459ec0d..9a5986d19c 100644 --- a/src/rtm.c +++ b/src/rtm.c @@ -16,7 +16,7 @@ #include /* some buildin kernel symbol */ - +#ifdef RT_USING_MODULE /* * thread interface symbol */ @@ -142,3 +142,4 @@ RTM_EXPORT(rt_timer_control) */ RTM_EXPORT(rt_kprintf) +#endif