From: Angus Gratton Date: Tue, 17 Jan 2017 23:57:53 +0000 (+1100) Subject: esp_panic.h: Add C++ include guards X-Git-Tag: v2.0-rc1~2^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b022232e8415f1362ada131df253cc4e07b53ce9;p=esp-idf esp_panic.h: Add C++ include guards --- 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