Browse Source

add more RT_USING_MODULE definition.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@717 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong 15 years ago
parent
commit
5836237ae3
2 changed files with 3 additions and 3 deletions
  1. 1 2
      include/rtthread.h
  2. 2 1
      src/rtm.c

+ 1 - 2
include/rtthread.h

@@ -14,8 +14,7 @@
  * 2006-08-10     Bernard      add version information
  * 2006-08-10     Bernard      add version information
  * 2007-01-28     Bernard      rename RT_OBJECT_Class_Static to RT_Object_Class_Static
  * 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
  * 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__
 #ifndef __RT_THREAD_H__

+ 2 - 1
src/rtm.c

@@ -16,7 +16,7 @@
 #include <rtm.h>
 #include <rtm.h>
 
 
 /* some buildin kernel symbol */
 /* some buildin kernel symbol */
-
+#ifdef RT_USING_MODULE
 /*
 /*
  * thread  interface symbol 
  * thread  interface symbol 
  */
  */
@@ -142,3 +142,4 @@ RTM_EXPORT(rt_timer_control)
  */
  */
 RTM_EXPORT(rt_kprintf)
 RTM_EXPORT(rt_kprintf)
 
 
+#endif