From 6d2be00b9c009ff28223dce4949d2b4819b86531 Mon Sep 17 00:00:00 2001 From: hichard Date: Fri, 26 Oct 2018 20:36:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DIAR=20dlib=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=98=A0=E5=B0=84=EF=BC=8C=E4=BB=8Ertt=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E7=89=88=E6=9C=AC=E6=89=BE=E5=88=B0iar=E6=94=AF?= =?UTF-8?q?=E6=8C=8164bit=E6=97=B6=E9=97=B4=E7=9A=84=E8=B5=B7=E5=A7=8B?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/compilers/dlib/time.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/components/libc/compilers/dlib/time.c b/components/libc/compilers/dlib/time.c index 12c7f893e9..87574df851 100644 --- a/components/libc/compilers/dlib/time.c +++ b/components/libc/compilers/dlib/time.c @@ -41,10 +41,15 @@ int gettimeofday(struct timeval *tp, void *ignore) * */ #pragma module_name = "?time" -#if _DLIB_TIME_ALLOW_64 -__time64_t __time64(__time64_t *t) +#if _DLIB_TIME_USES_64 +time_t __time64(time_t *t) #else -__time32_t __time32(__time32_t *t) +/* for IAR 6.2 later Compiler */ +#if defined (__IAR_SYSTEMS_ICC__) && (__VER__) >= 6020000 +time_t __time32(time_t *t) +#else +time_t time(time_t *t) +#endif #endif { time_t time_now = 0; -- GitLab