浏览代码

增加 RT_USING_POSIX

mysterywolf 4 年之前
父节点
当前提交
cf00e7f0a1
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4 0
      include/libc/libc_limits.h
  2. 4 0
      include/libc/libc_stdio.h

+ 4 - 0
include/libc/libc_limits.h

@@ -17,8 +17,12 @@
 
 
 #include <limits.h>
 #include <limits.h>
 
 
+#ifdef RT_USING_POSIX
+
 #ifndef SSIZE_MAX
 #ifndef SSIZE_MAX
 # define SSIZE_MAX      LONG_MAX
 # define SSIZE_MAX      LONG_MAX
 #endif
 #endif
 
 
 #endif
 #endif
+
+#endif

+ 4 - 0
include/libc/libc_stdio.h

@@ -15,6 +15,10 @@
 #ifndef LIBC_STDIO_H__
 #ifndef LIBC_STDIO_H__
 #define LIBC_STDIO_H__
 #define LIBC_STDIO_H__
 
 
+#ifdef RT_USING_POSIX
+
 #include <posix_getline.h>
 #include <posix_getline.h>
 
 
 #endif
 #endif
+
+#endif