From ad1d6600b84435322120bec2a79db4b0499f6ebb Mon Sep 17 00:00:00 2001 From: Bluebear233 <417350690@qq.com> Date: Sat, 15 Sep 2018 00:32:36 +0800 Subject: [PATCH] Update libc.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复没有使用RT_USING_CONSOLE时,libc.c编译报错 --- components/libc/compilers/newlib/libc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/libc/compilers/newlib/libc.c b/components/libc/compilers/newlib/libc.c index 0b7350c30e..495ecf4ce0 100644 --- a/components/libc/compilers/newlib/libc.c +++ b/components/libc/compilers/newlib/libc.c @@ -39,7 +39,7 @@ int _EXFUN(putenv,(char *__string)); 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; dev_console = rt_console_get_device();