4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-03-04 02:25:28 +08:00

Merge pull request #1870 from hichard/master

修复IAR的dlib时间映射,支持64bit的时间。
This commit is contained in:
Bernard Xiong 2018-10-09 09:42:42 +08:00 committed by GitHub
commit df6cf9b308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,12 +32,11 @@ int gettimeofday(struct timeval *tp, void *ignore)
* @return time_t return timestamp current.
*
*/
/* for IAR 6.2 later Compiler */
#if defined (__IAR_SYSTEMS_ICC__) && (__VER__) >= 6020000
#pragma module_name = "?time"
time_t (__time32)(time_t *t) /* Only supports 32-bit timestamp */
#if _DLIB_TIME_ALLOW_64
time_t __time64(time_t *t)
#else
time_t time(time_t *t)
time_t __time32(time_t *t)
#endif
{
time_t time_now = 0;