mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-27 23:38:32 +08:00
[libc] 修复difftime函数在IAR下的编译错误
This commit is contained in:
@@ -324,10 +324,12 @@ char* ctime(const time_t *tim_p)
|
|||||||
}
|
}
|
||||||
RTM_EXPORT(ctime);
|
RTM_EXPORT(ctime);
|
||||||
|
|
||||||
|
#ifndef __ICCARM__
|
||||||
double difftime(time_t time1, time_t time2)
|
double difftime(time_t time1, time_t time2)
|
||||||
{
|
{
|
||||||
return (double)(time1 - time2);
|
return (double)(time1 - time2);
|
||||||
}
|
}
|
||||||
|
#endif /* __ICCARM__ */
|
||||||
RTM_EXPORT(difftime);
|
RTM_EXPORT(difftime);
|
||||||
|
|
||||||
RTM_EXPORT(strftime); /* inherent in the toolchain */
|
RTM_EXPORT(strftime); /* inherent in the toolchain */
|
||||||
|
|||||||
Reference in New Issue
Block a user