From fcb62b80dafbc1fd58b1de48a29231a7204690b3 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 30 Sep 2018 09:41:43 +0800 Subject: [PATCH] [libc] Add _EXFUN judgement --- components/libc/compilers/newlib/libc.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 +#include +#include #include +#ifndef _EXFUN +#define _EXFUN(name, proto) name proto +#endif + #define MILLISECOND_PER_SECOND 1000UL #define MICROSECOND_PER_SECOND 1000000UL #define NANOSECOND_PER_SECOND 1000000000UL