mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-03-04 01:35:26 +08:00
Merge pull request #1870 from hichard/master
修复IAR的dlib时间映射,支持64bit的时间。
This commit is contained in:
commit
df6cf9b308
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user