Merge pull request #881 from armink/fix_libc
[libc] Remove `RT_USING_POSIX_STDIN` in libc.
This commit is contained in:
commit
6e2260dae6
|
@ -42,7 +42,7 @@ int libc_system_init(void)
|
|||
dev_console = rt_console_get_device();
|
||||
if (dev_console)
|
||||
{
|
||||
#if defined(RT_USING_POSIX_STDIN)
|
||||
#if defined(RT_USING_POSIX)
|
||||
libc_stdio_set_console(dev_console->parent.name, O_RDWR);
|
||||
#else
|
||||
libc_stdio_set_console(dev_console->parent.name, O_WRONLY);
|
||||
|
|
|
@ -42,7 +42,7 @@ int libc_system_init(void)
|
|||
dev_console = rt_console_get_device();
|
||||
if (dev_console)
|
||||
{
|
||||
#if defined(RT_USING_POSIX_STDIN)
|
||||
#if defined(RT_USING_POSIX)
|
||||
libc_stdio_set_console(dev_console->parent.name, O_RDWR);
|
||||
#else
|
||||
libc_stdio_set_console(dev_console->parent.name, O_WRONLY);
|
||||
|
|
Loading…
Reference in New Issue