Explorar o código

fix(esp_system): Fixed C++ compilation of libunwind.h

Jakob Hasse %!s(int64=2) %!d(string=hai) anos
pai
achega
44e4ef79e2
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      components/esp_system/include/libunwind.h

+ 4 - 3
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 <stddef.h>
@@ -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