Browse Source

增加 RT_USING_POSIX

mysterywolf 4 năm trước cách đây
mục cha
commit
cf00e7f0a1
2 tập tin đã thay đổi với 8 bổ sung0 xóa
  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