mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-05 15:15:29 +00: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:
@@ -23,6 +23,19 @@
|
||||
|
||||
#include <rtconfig.h>
|
||||
|
||||
/* settings depend check */
|
||||
#ifdef RT_USING_POSIX
|
||||
#if !defined(RT_USING_DFS) || !defined(RT_USING_DFS_DEVFS)
|
||||
#error "POSIX poll/select, stdin need file system(RT_USING_DFS) and device file system(RT_USING_DFS_DEVFS)"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef RT_USING_POSIX_TERMIOS
|
||||
#if !defined(RT_USING_POSIX)
|
||||
#error "termios need POSIX layer(RT_USING_POSIX)"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Using this macro to control all kernel debug features. */
|
||||
#ifdef RT_DEBUG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user