summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-09-30 10:12:22 +0800
committerGitHub <[email protected]>2018-09-30 10:12:22 +0800
commite9b6db768f2a5fd3e360319bacd98a74a0930a9c (patch)
tree8188fb61a41c3949e12d848a069545958bae037e
parent1f472cd1e110462e85166b2681a346b549bb0fba (diff)
parentfcb62b80dafbc1fd58b1de48a29231a7204690b3 (diff)
Merge pull request #1854 from RT-Thread/fix_libc_EXFUN
[libc] Add _EXFUN judgement
-rw-r--r--components/libc/compilers/newlib/libc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/libc/compilers/newlib/libc.h b/components/libc/compilers/newlib/libc.h
index d077de9656..e0a9f053a0 100644
--- a/components/libc/compilers/newlib/libc.h
+++ b/components/libc/compilers/newlib/libc.h
@@ -26,8 +26,15 @@
#ifndef __RTT_LIBC_H__
#define __RTT_LIBC_H__
+#include <stdio.h>
+#include <stdint.h>
+#include <string.h>
#include <sys/time.h>
+#ifndef _EXFUN
+#define _EXFUN(name, proto) name proto
+#endif
+
#define MILLISECOND_PER_SECOND 1000UL
#define MICROSECOND_PER_SECOND 1000000UL
#define NANOSECOND_PER_SECOND 1000000000UL