Skip to content

Commit 4399aed

Browse files
committed
fix build error.
1 parent d8d1501 commit 4399aed

File tree

1 file changed

+1
-1
lines changed
  • components/utilities/ulog

1 file changed

+1
-1
lines changed

components/utilities/ulog/ulog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ static char *get_log_buf(void)
244244
}
245245
}
246246

247-
extern struct tm* localtime_r(const time_t* t, struct tm* r);
248247
RT_WEAK rt_size_t ulog_formater(char *log_buf, rt_uint32_t level, const char *tag, rt_bool_t newline,
249248
const char *format, va_list args)
250249
{
@@ -275,6 +274,7 @@ RT_WEAK rt_size_t ulog_formater(char *log_buf, rt_uint32_t level, const char *ta
275274
/* add time info */
276275
{
277276
#ifdef ULOG_TIME_USING_TIMESTAMP
277+
extern struct tm* localtime_r(const time_t* t, struct tm* r);
278278
static struct timeval now;
279279
static struct tm *tm, tm_tmp;
280280
static rt_bool_t check_usec_support = RT_FALSE, usec_is_support = RT_FALSE;

0 commit comments

Comments
 (0)