Merge pull request #881 from armink/fix_libc

[libc] Remove `RT_USING_POSIX_STDIN` in libc.
This commit is contained in:
Bernard Xiong 2017-10-19 09:09:41 +08:00 committed by GitHub
commit 6e2260dae6
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);