提交 443978eb 编写于 作者: mysterywolf's avatar mysterywolf

增加RT_USING_POSIX_GETLINE用于单独控制是否启用getline函数,并修改Kconfig增加对应选项

上级 cf00e7f0
...@@ -22,11 +22,15 @@ if RT_USING_LIBC && RT_USING_DFS ...@@ -22,11 +22,15 @@ if RT_USING_LIBC && RT_USING_DFS
if RT_USING_POSIX if RT_USING_POSIX
config RT_USING_POSIX_MMAP config RT_USING_POSIX_MMAP
bool "Enable mmap() api" bool "Enable mmap() API"
default n default n
config RT_USING_POSIX_TERMIOS config RT_USING_POSIX_TERMIOS
bool "Enable termios feature" bool "Enable termios APIs"
default n
config RT_USING_POSIX_GETLINE
bool "Enable getline()/getdelim() APIs"
default n default n
config RT_USING_POSIX_AIO config RT_USING_POSIX_AIO
......
...@@ -7,7 +7,7 @@ src = Glob('*.c') + Glob('*.cpp') ...@@ -7,7 +7,7 @@ src = Glob('*.c') + Glob('*.cpp')
CPPPATH = [cwd] CPPPATH = [cwd]
group = DefineGroup('libc', src, group = DefineGroup('libc', src,
depend = ['RT_USING_LIBC', 'RT_USING_POSIX'], depend = ['RT_USING_LIBC', 'RT_USING_POSIX','RT_USING_POSIX_GETLINE'],
CPPPATH = CPPPATH) CPPPATH = CPPPATH)
Return('group') Return('group')
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#ifndef LIBC_STDIO_H__ #ifndef LIBC_STDIO_H__
#define LIBC_STDIO_H__ #define LIBC_STDIO_H__
#ifdef RT_USING_POSIX #ifdef RT_USING_POSIX_GETLINE
#include <posix_getline.h> #include <posix_getline.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册