From 9c620cb2f18fdf287302a7b4091046ce717891e6 Mon Sep 17 00:00:00 2001 From: armink Date: Fri, 16 Feb 2018 20:48:37 +0800 Subject: [PATCH] [Libc][Minilibc] Add some function declaration to time.h . --- components/libc/compilers/minilibc/time.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/libc/compilers/minilibc/time.h b/components/libc/compilers/minilibc/time.h index 2f8ad23c71..d64feba0b8 100644 --- a/components/libc/compilers/minilibc/time.h +++ b/components/libc/compilers/minilibc/time.h @@ -3,4 +3,14 @@ #include +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 -- GitLab