From 90642f4dc2ddf01a7d51c36bd46c8dd04c1a5d53 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Sun, 27 Oct 2024 19:33:58 +0800 Subject: [PATCH] fix: add extern C support c++ --- tools/shell/inc/shellAuto.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/shell/inc/shellAuto.h b/tools/shell/inc/shellAuto.h index 7fe249251b..c9d631f4b2 100644 --- a/tools/shell/inc/shellAuto.h +++ b/tools/shell/inc/shellAuto.h @@ -16,6 +16,10 @@ #ifndef __SHELL_AUTO__ #define __SHELL_AUTO__ +#ifdef __cplusplus +extern "C" { +#endif + #include "shellInt.h" #define TAB_KEY 0x09 @@ -54,5 +58,8 @@ void showHelp(); bool fieldOptionsArea(char* p); bool isCreateFieldsArea(char* p); +#ifdef __cplusplus +} +#endif #endif