Browse Source

增加 RT_USING_POSIX

mysterywolf 4 years ago
parent
commit
cf00e7f0a1
2 changed files with 8 additions and 0 deletions
  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>
 
+#ifdef RT_USING_POSIX
+
 #ifndef SSIZE_MAX
 # define SSIZE_MAX      LONG_MAX
 #endif
 
 #endif
+
+#endif

+ 4 - 0
include/libc/libc_stdio.h

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