From 0dbb6d94ecf2c7649c506ea4c678368805b1c90f 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 eeb15208dd..6afce7829f 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" /** @@ -67,3 +71,7 @@ void lp_core_print_hex(int h); * @param d integer to be printed */ void lp_core_print_dec_two_digits(int d); + +#ifdef __cplusplus +} +#endif