summaryrefslogtreecommitdiff
path: root/rbtree_augmented.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-11-03 23:50:50 +0100
committerDavid Sterba <dsterba@suse.cz>2014-11-03 23:50:50 +0100
commitcafacda441120976105d01c07286e843cb7cbb94 (patch)
treef46ae085fa3252cf68155d1e25c5cf87419116fb /rbtree_augmented.h
parent2f55fd70191ed3e204cbe589af34a8c678dceab6 (diff)
btrfs-progs: libbtrfs, make exported headers compatible with C++
Add externs and don't use a reserved keyword. Signed-off-by: David Sterba <dsterba@suse.cz>
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 */