diff --git a/components/heap/include/esp_heap_caps.h b/components/heap/include/esp_heap_caps.h index 603b77c35..c9a983dba 100644 --- a/components/heap/include/esp_heap_caps.h +++ b/components/heap/include/esp_heap_caps.h @@ -17,6 +17,10 @@ #include #include "multi_heap.h" +#ifdef __cplusplus +extern "C" { +#endif + /** * @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(); +#ifdef __cplusplus +} +#endif