Skip to content

Commit 50433a5

Browse files
authored
Merge pull request #5123 from shishirong/patch-1
fix ulog compile error.
2 parents 634e534 + 797c80a commit 50433a5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

components/utilities/ulog/ulog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ static void ulog_filter(uint8_t argc, char **argv)
12501250
}
12511251
}
12521252
MSH_CMD_EXPORT(ulog_filter, Show ulog filter settings);
1253-
#endif defined(RT_USING_FINSH)
1253+
#endif /* RT_USING_FINSH */
12541254
#endif /* ULOG_USING_FILTER */
12551255

12561256
rt_err_t ulog_backend_register(ulog_backend_t backend, const char *name, rt_bool_t support_color)

components/utilities/ulog/ulog_def.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
#ifndef _ULOG_DEF_H_
1212
#define _ULOG_DEF_H_
1313

14+
#include <stddef.h>
15+
#include <stdint.h>
16+
#include <stdlib.h>
17+
#include <rtdef.h>
18+
1419
#ifdef __cplusplus
1520
extern "C" {
1621
#endif

0 commit comments

Comments
 (0)