Przeglądaj źródła

esp_panic.h: Add C++ include guards

Angus Gratton 9 lat temu
rodzic
commit
b022232e84
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      components/esp32/include/esp_panic.h

+ 8 - 0
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