From e2fca9afcce011aed105f2b7280fedcab78d7790 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 | 9 +++++++++ 1 file changed, 9 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 43a956b9be..acfdd12883 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 @@ -3,6 +3,11 @@ * * SPDX-License-Identifier: Apache-2.0 */ +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif /** * @brief Print from the LP core @@ -15,3 +20,7 @@ * */ void lp_core_printf(const char* format, ...); + +#ifdef __cplusplus +} +#endif