summaryrefslogtreecommitdiffstats
path: root/lib/frrstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/frrstr.h')
-rw-r--r--lib/frrstr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/frrstr.h b/lib/frrstr.h
index 891a3f337..8b591849a 100644
--- a/lib/frrstr.h
+++ b/lib/frrstr.h
@@ -27,6 +27,10 @@
#include "vector.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Tokenizes a string, storing tokens in a vector. Whitespace is ignored.
* Delimiter characters are not included.
@@ -108,4 +112,8 @@ bool begins_with(const char *str, const char *prefix);
*/
int all_digit(const char *str);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FRRSTR_H_ */