summaryrefslogtreecommitdiff
path: root/lib/defaults.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-04-20 20:53:19 -0300
committerRenato Westphal <renato@opensourcerouting.org>2020-04-22 23:49:22 -0300
commit17e38209a593f6b95b56aba11bed11d233da07c2 (patch)
treec80f25fa35e9b76c20e4183ec93ba0940ad445dc /lib/defaults.h
parent86ac1facf38df2006ab73f30eae0301057fbcade (diff)
lib, zebra: add missing extern "C" {} blocks to new header files
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/defaults.h')
-rw-r--r--lib/defaults.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/defaults.h b/lib/defaults.h
index 7cdd18120e..20ef28db31 100644
--- a/lib/defaults.h
+++ b/lib/defaults.h
@@ -22,6 +22,10 @@
#include "compiler.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* frr_default wraps information about a default that has different
* values depending on FRR version or default-set
*
@@ -135,4 +139,8 @@ extern bool frr_defaults_profile_valid(const char *profile);
/* like strcmp(), but with version ordering */
extern int frr_version_cmp(const char *aa, const char *bb);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FRR_DEFAULTS_H */