mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
util/slab: allow usage from c++ code
Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7477>
This commit is contained in:
parent
c88e314a2d
commit
f4ff66d75f
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue