diff --git a/util/silicon_labs/silabs_core/memory_manager/sl_malloc.h b/util/silicon_labs/silabs_core/memory_manager/sl_malloc.h index 93cb8113d3..e114b66532 100644 --- a/util/silicon_labs/silabs_core/memory_manager/sl_malloc.h +++ b/util/silicon_labs/silabs_core/memory_manager/sl_malloc.h @@ -20,6 +20,10 @@ #ifndef SL_MALLOC_H #define SL_MALLOC_H +#ifdef __cplusplus +extern "C" { +#endif + #include void *sl_malloc(size_t size); @@ -27,4 +31,8 @@ void *sl_calloc(size_t nmemb, size_t size); void *sl_realloc(void * ptr, size_t size); void sl_free(void * ptr); +#ifdef __cplusplus +} +#endif + #endif // SL_MALLOC_H