diff options
| author | Bluebear233 <[email protected]> | 2018-09-15 00:32:36 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-09-15 00:32:36 +0800 |
| commit | ad1d6600b84435322120bec2a79db4b0499f6ebb (patch) | |
| tree | 43fabb0d39cf1de684348290016f957fd2f68293 /components/libc | |
| parent | 3a5d9e73f17f406ada880e7649261b4dd3b53ec2 (diff) | |
Update libc.c
修复没有使用RT_USING_CONSOLE时,libc.c编译报错
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/compilers/newlib/libc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
