mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 13:03:31 +08:00
[libc/time] Fix MDK build error when using gmtime_r.
This commit is contained in:
parent
3ae6ca1fb0
commit
6eb6752398
@ -57,6 +57,10 @@ time_t timegm(struct tm * const t);
|
||||
int gettimeofday(struct timeval *tv, struct timezone *tz);
|
||||
int settimeofday(const struct timeval *tv, const struct timezone *tz);
|
||||
|
||||
#if defined(__ARMCC_VERSION) || defined (__ICCARM__)
|
||||
struct tm *gmtime_r(const time_t *timep, struct tm *r);
|
||||
#endif
|
||||
|
||||
#ifdef RT_USING_POSIX
|
||||
#include <sys/types.h>
|
||||
/* posix clock and timer */
|
||||
|
Loading…
x
Reference in New Issue
Block a user