From 88c476e630be0394cc16ac9d657611f764cc222d Mon Sep 17 00:00:00 2001 From: andylinpersonal Date: Thu, 8 Aug 2024 03:26:55 +0800 Subject: [PATCH] fix(ulp): Add the missing extern "C" guard to ulp_lp_core_print.h This commit adds the missing extern `C` guards the ulp_lp_core_print.h header file. Closes https://github.com/espressif/esp-idf/pull/14329 --- .../ulp/lp_core/lp_core/include/ulp_lp_core_print.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/ulp/lp_core/lp_core/include/ulp_lp_core_print.h b/components/ulp/lp_core/lp_core/include/ulp_lp_core_print.h index 27a080581d..3095adafde 100644 --- a/components/ulp/lp_core/lp_core/include/ulp_lp_core_print.h +++ b/components/ulp/lp_core/lp_core/include/ulp_lp_core_print.h @@ -5,6 +5,10 @@ */ #pragma once +#ifdef __cplusplus +extern "C" { +#endif + #include "sdkconfig.h" /** @@ -44,3 +48,7 @@ extern void ets_install_uart_printf(void); * @param c character to be printed */ void lp_core_print_char(char c); + +#ifdef __cplusplus +} +#endif