]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/log.h
lib: add extern "C" {} blocks to all libfrr headers
[mirror_frr.git] / lib / log.h
index 816daea3054d8bb226dd865db7c462b627c52052..189857a90746360bf588b96d940bb294ffde874e 100644 (file)
--- a/lib/log.h
+++ b/lib/log.h
 #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 */