diff --git a/include/rtthread.h b/include/rtthread.h index e43c3af1eaa86a412bb2115829c1a625a8a3b8ee..0e98753c6f669e78b352fefe2b427ae2f8632b53 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 f6e459ec0df0a82c8c17e2c984f27ad2e57a0bb3..9a5986d19cf8de52a18fee7fcc5c5d25ceceb055 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