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
This commit is contained in:
mbbill@gmail.com 2011-06-09 10:48:59 +00:00
parent ae674ab359
commit fef619f7b0
1 changed files with 3 additions and 2 deletions

View File

@ -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.