Pārlūkot izejas kodu

freertos/add C++ include guards for esp_heap_caps.h

Darian Leung 8 gadi atpakaļ
vecāks
revīzija
fff482acd9
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 7 0
      components/heap/include/esp_heap_caps.h

+ 7 - 0
components/heap/include/esp_heap_caps.h

@@ -17,6 +17,10 @@
 #include <stdlib.h>
 #include <stdlib.h>
 #include "multi_heap.h"
 #include "multi_heap.h"
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
 /**
  * @brief Flags to indicate the capabilities of the various memory systems
  * @brief Flags to indicate the capabilities of the various memory systems
  */
  */
@@ -306,3 +310,6 @@ void heap_caps_dump(uint32_t caps);
  */
  */
 void heap_caps_dump_all();
 void heap_caps_dump_all();
 
 
+#ifdef __cplusplus
+}
+#endif