From: Mathieu Desnoyers Date: Fri, 1 Mar 2024 15:55:45 +0000 (-0500) Subject: percpu alloc: add missing extern C X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=c7ec94e0604b81dc6b0832f9c67876961cfcefe2;p=librseq.git percpu alloc: add missing extern C Signed-off-by: Mathieu Desnoyers Change-Id: I3039487f8e9a130b2fbcb8e6771df449d6021087 --- diff --git a/include/rseq/percpu-alloc.h b/include/rseq/percpu-alloc.h index 65b90f7..1084c75 100644 --- a/include/rseq/percpu-alloc.h +++ b/include/rseq/percpu-alloc.h @@ -12,6 +12,10 @@ * rseq/percpu-alloc.h */ +#ifdef __cplusplus +extern "C" { +#endif + struct rseq_percpu_pool; struct rseq_percpu_pool *rseq_percpu_pool_create(size_t item_len, @@ -36,4 +40,8 @@ int rseq_percpu_pool_set_add_pool(struct rseq_percpu_pool_set *pool_set, void *rseq_percpu_pool_set_malloc(struct rseq_percpu_pool_set *pool_set, size_t len); void *rseq_percpu_pool_set_zmalloc(struct rseq_percpu_pool_set *pool_set, size_t len); +#ifdef __cplusplus +} +#endif + #endif /* _RSEQ_PERCPU_ALLOC_H */