diff options
| author | chen zx <[email protected]> | 2021-08-16 16:29:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-16 16:29:25 +0800 |
| commit | ac824e0ef3d716aec68070b5cceb8fd4ba4eb641 (patch) | |
| tree | 1711cd852680129d0160daba1d6074b37883c135 /components/libc | |
| parent | 360223a693958584c6befe8c8788c3e529928377 (diff) | |
| parent | 33a50d0eb0c3fdaff3b64db472de784a7c2b3a9d (diff) | |
Merge branch 'RT-Thread:master' into master
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/compilers/newlib/syscalls.c | 2 |
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; |
