summaryrefslogtreecommitdiff
path: root/lib/printfrr.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/printfrr.h')
-rw-r--r--lib/printfrr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/printfrr.h b/lib/printfrr.h
index 7d9e288655..a775e1517b 100644
--- a/lib/printfrr.h
+++ b/lib/printfrr.h
@@ -24,6 +24,10 @@
#include "compiler.h"
#include "memory.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct fbuf {
char *buf;
char *pos;
@@ -156,4 +160,8 @@ void printfrr_ext_reg(const struct printfrr_ext *);
} \
/* end */
+#ifdef __cplusplus
+}
+#endif
+
#endif