summaryrefslogtreecommitdiff
path: root/components/libc/compilers
diff options
context:
space:
mode:
authorJackistang <[email protected]>2021-08-14 14:33:26 +0800
committerJackistang <[email protected]>2021-08-14 14:33:26 +0800
commita454422bd22b34fd45340129348a70363d82ef58 (patch)
tree2963aeb9cdd6bf56f114072082c33d63b8f725fb /components/libc/compilers
parent99de1a622003d100c29abc084669cfc1263b1614 (diff)
parent73753dd7fa63a2023c82be3bc7bbbe61e6e8ad1e (diff)
Merge branch 'master' of github.com:Jackistang/rt-thread
Diffstat (limited to 'components/libc/compilers')
-rw-r--r--components/libc/compilers/newlib/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/newlib/syscalls.c b/components/libc/compilers/newlib/syscalls.c
index e01dc59eb6..aeb4d123e7 100644
--- a/components/libc/compilers/newlib/syscalls.c
+++ b/components/libc/compilers/newlib/syscalls.c
@@ -210,7 +210,7 @@ int _wait_r(struct _reent *ptr, int *status)
_ssize_t _write_r(struct _reent *ptr, int fd, const void *buf, size_t nbytes)
{
#ifndef RT_USING_DFS
-#ifdef RT_USING_DEVICE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
if (fileno(stdout) == fd)
{
rt_device_t console;