]> granicus.if.org Git - esp-idf/commitdiff
esp_panic.h: Add C++ include guards
authorAngus Gratton <angus@espressif.com>
Tue, 17 Jan 2017 23:57:53 +0000 (10:57 +1100)
committerAngus Gratton <angus@espressif.com>
Fri, 20 Jan 2017 03:56:59 +0000 (14:56 +1100)
components/esp32/include/esp_panic.h

index aa83c6d3811d911d695ea3d426d019ecfb712ee0..e9668facc593d81e072e919403e988591f83e8cf 100644 (file)
@@ -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