[libc] Remove RT_USING_POSIX_STDIN in libc.

This commit is contained in:
armink 2017-10-18 20:20:41 +08:00
parent 7a99641c71
commit 137a65a6ce
2 changed files with 2 additions and 2 deletions

View File

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

View File

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