aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-02-15 10:34:30 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-02-15 10:34:56 +0100
commit2b200585e9018868c754b1d8196b83721522c60f (patch)
tree5d9826ef4e99e3a88cf7a15738ac8b978daaea67 /include
parentb635c78530d5d7f27f9805790c1f7ca227959177 (diff)
Fix broken C++ guard in rbtree.h
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/util/rbtree.h4
1 files changed, 4 insertions, 0 deletions
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 *));