diff options
Diffstat (limited to 'lib/typerb.h')
| -rw-r--r-- | lib/typerb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/typerb.h b/lib/typerb.h index 3d8db06fe0..ce8446f853 100644 --- a/lib/typerb.h +++ b/lib/typerb.h @@ -22,6 +22,10 @@ #include "typesafe.h" +#ifdef __cplusplus +extern "C" { +#endif + struct typed_rb_entry { struct typed_rb_entry *rbt_parent; struct typed_rb_entry *rbt_left; @@ -179,4 +183,8 @@ macro_inline int prefix ## __cmp_uq(const struct typed_rb_entry *a, \ _DECLARE_RBTREE(prefix, type, field, prefix ## __cmp, prefix ## __cmp_uq) \ /* ... */ +#ifdef __cplusplus +} +#endif + #endif /* _FRR_TYPERB_H */ |
