summaryrefslogtreecommitdiff
path: root/components/libc/compilers
diff options
context:
space:
mode:
authorhichard <[email protected]>2018-10-15 19:45:16 +0800
committerhichard <[email protected]>2018-10-15 19:45:16 +0800
commit61656e23f2d39465c2608529b60ca64efba07fd6 (patch)
tree3a073ed85d406481e0730c0e78253bfd1ecda718 /components/libc/compilers
parentf763f8e7284b0492c5a65ad0abf94ee1963d7dcc (diff)
修复iar dlib时间映射函数的函数声明,适应不同版本的iar
Diffstat (limited to 'components/libc/compilers')
-rw-r--r--components/libc/compilers/dlib/time.c4
1 files changed, 2 insertions, 2 deletions
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;