修复 soc_shell_base.c 可能出现的重复定义的编译警告

This commit is contained in:
LokLiang
2025-02-26 14:23:57 +08:00
parent 513a0da85c
commit 07f30068a2

View File

@@ -20,10 +20,21 @@
#include "task.h" #include "task.h"
/* Unsigned integers. */ /* Unsigned integers. */
#ifndef PRIu8
#define PRIu8 "u" #define PRIu8 "u"
#endif
#ifndef PRIu16
#define PRIu16 "u" #define PRIu16 "u"
#endif
#ifndef PRIu32
#define PRIu32 "u" #define PRIu32 "u"
#endif
#ifndef PRIu64
#define PRIu64 __PRI64_PREFIX "u" #define PRIu64 __PRI64_PREFIX "u"
#endif
SH_CMD_FN(_base_free); SH_CMD_FN(_base_free);
SH_CMD_FN(_base_heap); SH_CMD_FN(_base_heap);