mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 02:06:14 +08:00
[libc] Add RT_USING_POSIX macro.
1. Add macro check in rtdebug.h; 2. Use RT_USING_POSIX for poll/select, stdin etc. 3. Split dfs_posix.h to dfs_posix.h, dfs_poll.h and dfs_select.h;
This commit is contained in:
@@ -43,7 +43,7 @@ size_t __write(int handle, const unsigned char *buf, size_t len)
|
||||
return _LLIO_ERROR;
|
||||
#else
|
||||
|
||||
#ifdef RT_USING_POSIX_STDIN
|
||||
#ifdef RT_USING_POSIX
|
||||
return libc_stdio_write((void*)buf, len);
|
||||
#else
|
||||
rt_device_t console_device;
|
||||
|
||||
Reference in New Issue
Block a user