summaryrefslogtreecommitdiffstats
path: root/lib/zlog.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zlog.h')
-rw-r--r--lib/zlog.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/zlog.h b/lib/zlog.h
index fd42ad50e..904049c0f 100644
--- a/lib/zlog.h
+++ b/lib/zlog.h
@@ -30,6 +30,10 @@
#include "memory.h"
#include "hook.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern char zlog_prefix[];
extern size_t zlog_prefixsz;
extern int zlog_tmpdirfd;
@@ -183,4 +187,8 @@ extern void zlog_tls_buffer_init(void);
extern void zlog_tls_buffer_flush(void);
extern void zlog_tls_buffer_fini(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FRR_ZLOG_H */