Browse Source

[libc] 修复keil编译不过的问题

Meco Man 3 years ago
parent
commit
b5c31a9878

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

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

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

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

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

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