diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-21 16:43:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-21 16:43:38 -0400 |
| commit | 5349270f128c81769b0bc99c8cbcbcb1e3d1034e (patch) | |
| tree | 108a2cec1cce02032550d07068ac8ecee32e404d /lib/typerb.h | |
| parent | 173c7642f2d7e1b2f897002c4cab3278a0730e22 (diff) | |
| parent | 156d4463e4631016a854a3d6a918ebdbd7ea8635 (diff) | |
Merge pull request #4374 from opensourcerouting/typesafe-minor-fixes
Minor fixes in the typesafe API for better C++ compatibility
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 */ |
