Browse Source

fix ulog compile error.

shishirong 3 năm trước cách đây
mục cha
commit
797c80a7cb
2 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 1 1
      components/utilities/ulog/ulog.c
  2. 5 0
      components/utilities/ulog/ulog_def.h

+ 1 - 1
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)

+ 5 - 0
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