From 07f30068a27b8e3e7483683652f9e06a6d5d469f Mon Sep 17 00:00:00 2001 From: LokLiang Date: Wed, 26 Feb 2025 14:23:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20soc=5Fshell=5Fbase.c=20?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E5=87=BA=E7=8E=B0=E7=9A=84=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E7=9A=84=E7=BC=96=E8=AF=91=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sal/esp32/soc_shell_base.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sal/esp32/soc_shell_base.c b/sal/esp32/soc_shell_base.c index 634357c..12b0165 100644 --- a/sal/esp32/soc_shell_base.c +++ b/sal/esp32/soc_shell_base.c @@ -20,10 +20,21 @@ #include "task.h" /* Unsigned integers. */ +#ifndef PRIu8 #define PRIu8 "u" +#endif + +#ifndef PRIu16 #define PRIu16 "u" +#endif + +#ifndef PRIu32 #define PRIu32 "u" +#endif + +#ifndef PRIu64 #define PRIu64 __PRI64_PREFIX "u" +#endif SH_CMD_FN(_base_free); SH_CMD_FN(_base_heap);