diff options
| author | armink <[email protected]> | 2021-12-03 13:34:03 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2021-12-03 13:34:03 +0800 |
| commit | 4399aed64192f4a312a42eda06b871c2b1387357 (patch) | |
| tree | b5baba6932220c3fe14f26d08200ed0b1c7a35ec /components | |
| parent | d8d15017bcdf0c57f5c39060df732c62b8a6122e (diff) | |
fix build error.
Diffstat (limited to 'components')
| -rw-r--r-- | components/utilities/ulog/ulog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/utilities/ulog/ulog.c b/components/utilities/ulog/ulog.c index 00ab383676..fb268abf35 100644 --- a/components/utilities/ulog/ulog.c +++ b/components/utilities/ulog/ulog.c @@ -244,7 +244,6 @@ static char *get_log_buf(void) } } -extern struct tm* localtime_r(const time_t* t, struct tm* r); RT_WEAK rt_size_t ulog_formater(char *log_buf, rt_uint32_t level, const char *tag, rt_bool_t newline, const char *format, va_list args) { @@ -275,6 +274,7 @@ RT_WEAK rt_size_t ulog_formater(char *log_buf, rt_uint32_t level, const char *ta /* add time info */ { #ifdef ULOG_TIME_USING_TIMESTAMP + extern struct tm* localtime_r(const time_t* t, struct tm* r); static struct timeval now; static struct tm *tm, tm_tmp; static rt_bool_t check_usec_support = RT_FALSE, usec_is_support = RT_FALSE; |
