]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/typerb.h
lib: add missing extern "C" {} blocks to new headers
[mirror_frr.git] / lib / typerb.h
index 3d8db06fe08b831e087e8cd0a2f0ecacce59e941..ce8446f853a901c503e5c09105ba2277aa3f1202 100644 (file)
 
 #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 */