diff options
author | Chris Johns <chrisj@rtems.org> | 2022-08-19 15:22:17 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2022-08-22 08:30:00 +1000 |
commit | f5233fe51c24d7806badd8fc72aa86899e0afafa (patch) | |
tree | 373a5780d225da17175351a2da2c2953c8f50140 /cpukit/include/linux/rbtree.h | |
parent | spec/librtemscpu: Fix installed headers (diff) | |
download | rtems-f5233fe51c24d7806badd8fc72aa86899e0afafa.tar.bz2 |
cpukit/include: Fixes for C++
Updates #4706
Diffstat (limited to 'cpukit/include/linux/rbtree.h')
-rw-r--r-- | cpukit/include/linux/rbtree.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cpukit/include/linux/rbtree.h b/cpukit/include/linux/rbtree.h index b6ec864d06..fc6caad582 100644 --- a/cpukit/include/linux/rbtree.h +++ b/cpukit/include/linux/rbtree.h @@ -30,6 +30,10 @@ #include <rtems/score/rbtree.h> +#ifdef __cplusplus +extern "C" { +#endif + #define rb_node RBTree_Node #define rb_left Node.rbe_left @@ -109,7 +113,7 @@ static inline struct rb_node *rb_last( struct rb_root *root ) static inline void rb_replace_node( struct rb_node *victim, - struct rb_node *replacement, + struct rb_node *replacement, struct rb_root *root ) { @@ -151,4 +155,8 @@ static inline struct rb_node *rb_parent( struct rb_node *node ) node = next \ ) +#ifdef __cplusplus +} +#endif + #endif /* _LINUX_RBTREE_H */ |