summaryrefslogtreecommitdiffstats
path: root/lib/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/log.h')
-rw-r--r--lib/log.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/log.h b/lib/log.h
index 816daea30..189857a90 100644
--- a/lib/log.h
+++ b/lib/log.h
@@ -29,6 +29,10 @@
#include <stdarg.h>
#include "lib/hook.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Hook for external logging function */
DECLARE_HOOK(zebra_ext_log, (int priority, const char *format, va_list args),
(priority, format, args));
@@ -196,4 +200,8 @@ struct timestamp_control {
"Local use\n" \
"Local use\n"
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _ZEBRA_LOG_H */