diff options
| author | Bernard Xiong <[email protected]> | 2021-11-10 22:23:43 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-10 22:23:43 +0800 |
| commit | e6ae01e3326a5feb6d11176c3407bee7c920399c (patch) | |
| tree | 80dc67ad821469bed720e01880a2901e5732d6a2 /components/libc/compilers/dlib/syscall_write.c | |
| parent | fdbaa2a808d12d522ad90702795c08ae8443aab9 (diff) | |
| parent | 219d1e20f579cda0aac62d90bf926e8a0a9dd688 (diff) | |
Merge pull request #5259 from mysterywolf/posix
[posix] 优化posix若干
Diffstat (limited to 'components/libc/compilers/dlib/syscall_write.c')
| -rw-r--r-- | components/libc/compilers/dlib/syscall_write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/dlib/syscall_write.c b/components/libc/compilers/dlib/syscall_write.c index ab011c1096..72bac6ba49 100644 --- a/components/libc/compilers/dlib/syscall_write.c +++ b/components/libc/compilers/dlib/syscall_write.c @@ -11,7 +11,7 @@ #include <rtthread.h> #include <yfuns.h> #include <unistd.h> -#ifdef RT_USING_POSIX +#ifdef RT_USING_POSIX_STDIO #include "libc.h" #endif @@ -29,7 +29,7 @@ size_t __write(int handle, const unsigned char *buf, size_t len) if ((handle == _LLIO_STDOUT) || (handle == _LLIO_STDERR)) { -#ifdef RT_USING_POSIX +#ifdef RT_USING_POSIX_STDIO if (libc_stdio_get_console() < 0) { LOG_W("Do not invoke standard output before initializing libc"); |
