summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/libc/compilers/common/ctime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/libc/compilers/common/ctime.c b/components/libc/compilers/common/ctime.c
index 6cef1e222d..34d646ff9d 100644
--- a/components/libc/compilers/common/ctime.c
+++ b/components/libc/compilers/common/ctime.c
@@ -324,10 +324,12 @@ char* ctime(const time_t *tim_p)
}
RTM_EXPORT(ctime);
+#ifndef __ICCARM__
double difftime(time_t time1, time_t time2)
{
return (double)(time1 - time2);
}
+#endif /* __ICCARM__ */
RTM_EXPORT(difftime);
RTM_EXPORT(strftime); /* inherent in the toolchain */