add RT_USING_POSIX_STDIO

This commit is contained in:
Meco Man
2021-11-07 21:40:19 -05:00
parent 251e17b41a
commit f8388c572e
11 changed files with 35 additions and 34 deletions

View File

@@ -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)