summaryrefslogtreecommitdiff
path: root/rbtree_augmented.h
diff options
context:
space:
mode:
Diffstat (limited to 'rbtree_augmented.h')
-rw-r--r--rbtree_augmented.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/rbtree_augmented.h b/rbtree_augmented.h
index 079eb978..cbc96398 100644
--- a/rbtree_augmented.h
+++ b/rbtree_augmented.h
@@ -26,6 +26,10 @@
#include "rbtree.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Please note - only struct rb_augment_callbacks and the prototypes for
* rb_insert_augmented() and rb_erase_augmented() are intended to be public.
@@ -228,4 +232,8 @@ rb_erase_augmented(struct rb_node *node, struct rb_root *root,
__rb_erase_color(rebalance, root, augment->rotate);
}
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _LINUX_RBTREE_AUGMENTED_H */