summaryrefslogtreecommitdiff
path: root/components/libc/compilers/armlibc/stubs.c
diff options
context:
space:
mode:
authorliang yongxiang <[email protected]>2018-07-17 16:52:54 +0800
committerliang yongxiang <[email protected]>2018-07-17 16:58:17 +0800
commita27144eb4eb39e2f6d597ae8231aebfa79506285 (patch)
tree4775854f945d098d22ef62837bf5729f8d5dd93c /components/libc/compilers/armlibc/stubs.c
parentec0e5489736d4e74a6ca5687598600f2357c6d47 (diff)
[libc] dependence update: rt_device_write()/rt_console_get_device() need RT_USING_CONSOLE and RT_USING_DEVICE
Diffstat (limited to 'components/libc/compilers/armlibc/stubs.c')
-rw-r--r--components/libc/compilers/armlibc/stubs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c
index 74ca5fd1f6..b9be260357 100644
--- a/components/libc/compilers/armlibc/stubs.c
+++ b/components/libc/compilers/armlibc/stubs.c
@@ -189,7 +189,7 @@ int _sys_write(FILEHANDLE fh, const unsigned char *buf, unsigned len, int mode)
if ((fh == STDOUT) || (fh == STDERR))
{
-#ifndef RT_USING_CONSOLE
+#if !defined(RT_USING_CONSOLE) || !defined(RT_USING_DEVICE)
return 0;
#else
#ifdef RT_USING_POSIX