diff --git a/src/util/slab.h b/src/util/slab.h index 5a25adaf7f4..f9e7d4754fe 100644 --- a/src/util/slab.h +++ b/src/util/slab.h @@ -44,6 +44,10 @@ #include "c11/threads.h" +#ifdef __cplusplus +extern "C" { +#endif + struct slab_element_header; struct slab_page_header; @@ -91,4 +95,8 @@ void slab_destroy(struct slab_mempool *mempool); void *slab_alloc_st(struct slab_mempool *mempool); void slab_free_st(struct slab_mempool *mempool, void *ptr); +#ifdef __cplusplus +} +#endif + #endif