From 44e4ef79e28e3757df27d7e87570bb04c2a5aa34 Mon Sep 17 00:00:00 2001 From: Jakob Hasse Date: Wed, 9 Aug 2023 14:11:22 +0800 Subject: [PATCH] fix(esp_system): Fixed C++ compilation of libunwind.h --- components/esp_system/include/libunwind.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/esp_system/include/libunwind.h b/components/esp_system/include/libunwind.h index a91de95965..09c4d6247d 100644 --- a/components/esp_system/include/libunwind.h +++ b/components/esp_system/include/libunwind.h @@ -4,8 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#ifndef LIBUNWIND_H -#define LIBUNWIND_H +#pragma once #include "sdkconfig.h" #include @@ -132,4 +131,6 @@ int unw_get_reg(unw_cursor_t* cp, unw_regnum_t reg, unw_word_t* valp); */ int unw_set_reg(unw_cursor_t* cp, unw_regnum_t reg, unw_word_t val); -#endif // LIBUNWIND_H +#ifdef __cplusplus +} +#endif