cpukit/include: Fixes for C++

Updates #4706
This commit is contained in:
Chris Johns
2022-08-22 08:30:00 +10:00
parent eae542c02f
commit f5233fe51c
4 changed files with 14 additions and 6 deletions
+9 -1
View File
@@ -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 */