diff --git a/components/libc/compilers/newlib/libc.c b/components/libc/compilers/newlib/libc.c index f8fbbb5e8..6d6a7d734 100644 --- a/components/libc/compilers/newlib/libc.c +++ b/components/libc/compilers/newlib/libc.c @@ -37,7 +37,7 @@ int libc_system_init(void) { -#ifdef RT_USING_DFS +#if defined(RT_USING_DFS) & defined(RT_USING_DFS_DEVFS) rt_device_t dev_console; dev_console = rt_console_get_device();