From 137a65a6ceb0a4d74984832f700577ec57224651 Mon Sep 17 00:00:00 2001 From: armink Date: Wed, 18 Oct 2017 20:20:41 +0800 Subject: [PATCH] [libc] Remove `RT_USING_POSIX_STDIN` in libc. --- components/libc/compilers/armlibc/libc.c | 2 +- components/libc/compilers/dlib/libc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/libc/compilers/armlibc/libc.c b/components/libc/compilers/armlibc/libc.c index d3a4ad06d..c3fab19fd 100644 --- a/components/libc/compilers/armlibc/libc.c +++ b/components/libc/compilers/armlibc/libc.c @@ -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); diff --git a/components/libc/compilers/dlib/libc.c b/components/libc/compilers/dlib/libc.c index ba998e974..fe219537e 100644 --- a/components/libc/compilers/dlib/libc.c +++ b/components/libc/compilers/dlib/libc.c @@ -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);