From 61656e23f2d39465c2608529b60ca64efba07fd6 Mon Sep 17 00:00:00 2001 From: hichard Date: Mon, 15 Oct 2018 19:45:16 +0800 Subject: 修复iar dlib时间映射函数的函数声明,适应不同版本的iar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/compilers/dlib/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/libc/compilers/dlib') diff --git a/components/libc/compilers/dlib/time.c b/components/libc/compilers/dlib/time.c index bea01e90e5..12c7f893e9 100644 --- a/components/libc/compilers/dlib/time.c +++ b/components/libc/compilers/dlib/time.c @@ -42,9 +42,9 @@ int gettimeofday(struct timeval *tp, void *ignore) */ #pragma module_name = "?time" #if _DLIB_TIME_ALLOW_64 -time_t __time64(time_t *t) +__time64_t __time64(__time64_t *t) #else -time_t __time32(time_t *t) +__time32_t __time32(__time32_t *t) #endif { time_t time_now = 0; -- cgit v1.3.1