aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 *));