Browse Source

Merge pull request #5050 from mysterywolf/libc

[remove rtlibc] 修复keil编译不过的问题
Bernard Xiong 3 years ago
parent
commit
ee55c58ce4

+ 1 - 4
components/libc/compilers/armlibc/libc.c

@@ -7,11 +7,8 @@
  * Date           Author       Notes
  * 2017/10/15     bernard      the first version
  */
-#include <stdio.h>
-#include <stdlib.h>
-
+#include <fcntl.h>
 #include <rtthread.h>
-
 #include "libc.h"
 
 #ifdef RT_USING_PTHREADS

+ 2 - 1
components/libc/compilers/armlibc/mem_std.c

@@ -7,7 +7,8 @@
  * 2014-08-03     bernard      Add file header.
  */
 
-#include "rtthread.h"
+#include <rtthread.h>
+#include <stddef.h>
 
 #ifdef RT_USING_HEAP
 

+ 0 - 3
components/libc/compilers/dlib/libc.c

@@ -7,11 +7,8 @@
  * Date           Author       Notes
  * 2017/10/15     bernard      the first version
  */
-#include <stdio.h>
-#include <stdlib.h>
 #include <fcntl.h>
 #include <rtthread.h>
-
 #include "libc.h"
 
 #ifdef RT_USING_PTHREADS