summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-06-09 10:48:59 +0000
committer[email protected] <[email protected]>2011-06-09 10:48:59 +0000
commitfef619f7b02f92eb6d8886cc3ab49d48177162fb (patch)
tree9f5cf16a87161edc3e96609ae45921178bf41764
parentae674ab359720f0e210becc43cee34189c0f7d49 (diff)
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
-rw-r--r--src/kservice.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kservice.c b/src/kservice.c
index 8a0c48d4fa..5336a9dd9c 100644
--- a/src/kservice.c
+++ b/src/kservice.c
@@ -428,7 +428,6 @@ void rt_show_version()
rt_kprintf(" 2006 - 2011 Copyright by rt-thread team\n");
}
-#ifdef RT_USING_CONSOLE
/* private function */
#define isdigit(c) ((unsigned)((c) - '0') < 10)
@@ -905,6 +904,8 @@ rt_int32_t rt_sprintf(char *buf ,const char *format,...)
return n;
}
+#ifdef RT_USING_CONSOLE
+
#ifdef RT_USING_DEVICE
/**
* This function will set a device as console device.
@@ -948,7 +949,7 @@ void rt_hw_console_output(const char* str)
__weak void rt_hw_console_output(const char* str)
#elif defined(__IAR_SYSTEMS_ICC__)
#if __VER__ > 540
-__weak
+__weak
#endif
void rt_hw_console_output(const char* str)
#endif