Browse Source

only include finsh.h when RT_USING_FINSH is defined.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@563 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong 15 years ago
parent
commit
1c2f82359c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/kernel/tc_comm.h

+ 2 - 0
examples/kernel/tc_comm.h

@@ -6,7 +6,9 @@
  *
  */
 #include <rtthread.h>
+#ifdef RT_USING_FINSH
 #include <finsh.h>
+#endif
 
 #if RT_THREAD_PRIORITY_MAX == 8
 #define THREAD_PRIORITY		6