Skip to content

Commit 3fae226

Browse files
committed
[newlib] fix compile error when closing RT_USING_CONSOLE
1 parent a6df439 commit 3fae226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/libc/compilers/newlib/syscalls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ int _wait_r(struct _reent *ptr, int *status)
210210
_ssize_t _write_r(struct _reent *ptr, int fd, const void *buf, size_t nbytes)
211211
{
212212
#ifndef RT_USING_DFS
213-
#ifdef RT_USING_DEVICE
213+
#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
214214
if (fileno(stdout) == fd)
215215
{
216216
rt_device_t console;

0 commit comments

Comments
 (0)