提交 fef619f7 编写于 作者: M mbbill@gmail.com

fix an error when RT_USING_CONSOLE is not defined.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1474 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 ae674ab3
...@@ -428,7 +428,6 @@ void rt_show_version() ...@@ -428,7 +428,6 @@ void rt_show_version()
rt_kprintf(" 2006 - 2011 Copyright by rt-thread team\n"); rt_kprintf(" 2006 - 2011 Copyright by rt-thread team\n");
} }
#ifdef RT_USING_CONSOLE
/* private function */ /* private function */
#define isdigit(c) ((unsigned)((c) - '0') < 10) #define isdigit(c) ((unsigned)((c) - '0') < 10)
...@@ -905,6 +904,8 @@ rt_int32_t rt_sprintf(char *buf ,const char *format,...) ...@@ -905,6 +904,8 @@ rt_int32_t rt_sprintf(char *buf ,const char *format,...)
return n; return n;
} }
#ifdef RT_USING_CONSOLE
#ifdef RT_USING_DEVICE #ifdef RT_USING_DEVICE
/** /**
* This function will set a device as console device. * This function will set a device as console device.
...@@ -948,7 +949,7 @@ void rt_hw_console_output(const char* str) ...@@ -948,7 +949,7 @@ void rt_hw_console_output(const char* str)
__weak void rt_hw_console_output(const char* str) __weak void rt_hw_console_output(const char* str)
#elif defined(__IAR_SYSTEMS_ICC__) #elif defined(__IAR_SYSTEMS_ICC__)
#if __VER__ > 540 #if __VER__ > 540
__weak __weak
#endif #endif
void rt_hw_console_output(const char* str) void rt_hw_console_output(const char* str)
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册