提交 a924da83 编写于 作者: mysterywolf's avatar mysterywolf 提交者: guo

[libc] 修复difftime函数在IAR下的编译错误

上级 ddec9fac
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册