4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 15:43:32 +08:00

Update libc.c

修复没有使用RT_USING_CONSOLE时,libc.c编译报错
This commit is contained in:
Bluebear233 2018-09-15 00:32:36 +08:00 committed by GitHub
parent 3a5d9e73f1
commit ad1d6600b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ int _EXFUN(putenv,(char *__string));
int libc_system_init(void) int libc_system_init(void)
{ {
#if defined(RT_USING_DFS) & defined(RT_USING_DFS_DEVFS) #if defined(RT_USING_DFS) & defined(RT_USING_DFS_DEVFS) & defined(RT_USING_CONSOLE)
rt_device_t dev_console; rt_device_t dev_console;
dev_console = rt_console_get_device(); dev_console = rt_console_get_device();