提交 3fae2266 编写于 作者: G greedyhao

[newlib] fix compile error when closing RT_USING_CONSOLE

上级 a6df4391
...@@ -210,7 +210,7 @@ int _wait_r(struct _reent *ptr, int *status) ...@@ -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) _ssize_t _write_r(struct _reent *ptr, int fd, const void *buf, size_t nbytes)
{ {
#ifndef RT_USING_DFS #ifndef RT_USING_DFS
#ifdef RT_USING_DEVICE #if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
if (fileno(stdout) == fd) if (fileno(stdout) == fd)
{ {
rt_device_t console; rt_device_t console;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册