From 2b200585e9018868c754b1d8196b83721522c60f Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 15 Feb 2023 10:34:30 +0100 Subject: Fix broken C++ guard in rbtree.h Signed-off-by: David Oberhollenzer --- include/util/rbtree.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/util/rbtree.h b/include/util/rbtree.h index aac175b..07f2ce9 100644 --- a/include/util/rbtree.h +++ b/include/util/rbtree.h @@ -52,6 +52,10 @@ static SQFS_INLINE void *rbtree_node_value(rbtree_node_t *n) return n->data + n->value_offset; } +#ifdef __cplusplus +extern "C" { +#endif + SQFS_INTERNAL int rbtree_init(rbtree_t *tree, size_t keysize, size_t valuesize, int(*key_compare)(const void *, const void *, const void *)); -- cgit v1.2.3