diff options
| author | Jianting (Meco) Man <[email protected]> | 2021-11-11 10:55:44 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-11 10:55:44 -0500 |
| commit | b98539e3f8e437b22014043d9a2adc0ced949c9b (patch) | |
| tree | b67a5449c2a74cbaf8cdcd36304c9b97b10335f9 /components/libc/compilers/dlib | |
| parent | da0bb7f6295450e30fc5608a0ecc89cc8bf572b8 (diff) | |
| parent | 31f0a9c2acbb32fab06285ff866077c816790124 (diff) | |
Merge branch 'master' into weak
Diffstat (limited to 'components/libc/compilers/dlib')
| -rw-r--r-- | components/libc/compilers/dlib/syscall_read.c | 4 | ||||
| -rw-r--r-- | components/libc/compilers/dlib/syscall_write.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/components/libc/compilers/dlib/syscall_read.c b/components/libc/compilers/dlib/syscall_read.c index 74cedb966a..c926c577b5 100644 --- a/components/libc/compilers/dlib/syscall_read.c +++ b/components/libc/compilers/dlib/syscall_read.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 @@ -22,7 +22,7 @@ #pragma module_name = "?__read" size_t __read(int handle, unsigned char *buf, size_t len) { -#ifdef RT_USING_POSIX +#ifdef RT_USING_POSIX_STDIO int size; if (handle == _LLIO_STDIN) 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"); |
