summaryrefslogtreecommitdiff
path: root/lib/defaults.h
diff options
context:
space:
mode:
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 */