[libc] Remove RT_USING_POSIX_STDIN
in libc.
This commit is contained in:
parent
7a99641c71
commit
137a65a6ce
@ -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…
x
Reference in New Issue
Block a user