From b022232e8415f1362ada131df253cc4e07b53ce9 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 18 Jan 2017 10:57:53 +1100 Subject: [PATCH] esp_panic.h: Add C++ include guards --- components/esp32/include/esp_panic.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/esp32/include/esp_panic.h b/components/esp32/include/esp_panic.h index aa83c6d381..e9668facc5 100644 --- a/components/esp32/include/esp_panic.h +++ b/components/esp32/include/esp_panic.h @@ -1,6 +1,10 @@ #ifndef PANIC_H #define PANIC_H +#ifdef __cplusplus +extern "C" +{ +#endif #define PANIC_RSN_NONE 0 #define PANIC_RSN_DEBUGEXCEPTION 1 @@ -59,4 +63,8 @@ void esp_clear_watchpoint(int no); #endif +#ifdef __cplusplus +} +#endif + #endif