mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 08:03:30 +08:00
Merge pull request #1224 from armink/fix_minilibc_time
Fix minilibc time
This commit is contained in:
commit
40b580b223
@ -15,6 +15,8 @@ typedef int mode_t;
|
|||||||
typedef unsigned long clockid_t;
|
typedef unsigned long clockid_t;
|
||||||
typedef int pid_t;
|
typedef int pid_t;
|
||||||
|
|
||||||
|
typedef unsigned long clock_t; /* clock() */
|
||||||
|
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
#define NULL (0)
|
#define NULL (0)
|
||||||
#endif
|
#endif
|
||||||
|
@ -3,4 +3,14 @@
|
|||||||
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
time_t mktime(struct tm * const t);
|
||||||
|
|
||||||
|
char *asctime(const struct tm *timeptr);
|
||||||
|
char *ctime(const time_t *timep);
|
||||||
|
struct tm* localtime(const time_t* t);
|
||||||
|
|
||||||
|
char *asctime_r(const struct tm *t, char *buf);
|
||||||
|
struct tm *gmtime_r(const time_t *timep, struct tm *r);
|
||||||
|
struct tm* localtime_r(const time_t* t, struct tm* r);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user