Explorar o código

Merge pull request #1809 from Bluebear233/patch-1

Update libc.c
Bernard Xiong %!s(int64=7) %!d(string=hai) anos
pai
achega
2c6c4a747b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/libc/compilers/newlib/libc.c

+ 1 - 1
components/libc/compilers/newlib/libc.c

@@ -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();