summaryrefslogtreecommitdiff
path: root/components/utilities
diff options
context:
space:
mode:
authorshishirong <[email protected]>2021-10-08 10:03:01 +0800
committershishirong <[email protected]>2021-10-08 10:03:01 +0800
commit797c80a7cb6ac07a4baaa1d01375d358cd40491a (patch)
tree6c3b12639c7411983833965d638e5e5cc8ad3190 /components/utilities
parent634e5341a6ee73001988216962cda398a42b1ce4 (diff)
fix ulog compile error.
Diffstat (limited to 'components/utilities')
-rw-r--r--components/utilities/ulog/ulog.c2
-rw-r--r--components/utilities/ulog/ulog_def.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/components/utilities/ulog/ulog.c b/components/utilities/ulog/ulog.c
index 0e227e39f3..8a091e9924 100644
--- a/components/utilities/ulog/ulog.c
+++ b/components/utilities/ulog/ulog.c
@@ -1250,7 +1250,7 @@ static void ulog_filter(uint8_t argc, char **argv)
}
}
MSH_CMD_EXPORT(ulog_filter, Show ulog filter settings);
-#endif defined(RT_USING_FINSH)
+#endif /* RT_USING_FINSH */
#endif /* ULOG_USING_FILTER */
rt_err_t ulog_backend_register(ulog_backend_t backend, const char *name, rt_bool_t support_color)
diff --git a/components/utilities/ulog/ulog_def.h b/components/utilities/ulog/ulog_def.h
index d51c6f0d84..73c78365d7 100644
--- a/components/utilities/ulog/ulog_def.h
+++ b/components/utilities/ulog/ulog_def.h
@@ -11,6 +11,11 @@
#ifndef _ULOG_DEF_H_
#define _ULOG_DEF_H_
+#include <stddef.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <rtdef.h>
+
#ifdef __cplusplus
extern "C" {
#endif