summaryrefslogtreecommitdiff
path: root/lib/zebra.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zebra.h')
-rw-r--r--lib/zebra.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index 3b624117de..6a02dcb922 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -217,6 +217,10 @@
#define static_cast(l, r) (r)
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef HAVE_STRLCAT
size_t strlcat(char *__restrict dest,
const char *__restrict src, size_t destsize);
@@ -379,4 +383,8 @@ typedef uint32_t route_tag_t;
#define ROUTE_TAG_MAX UINT32_MAX
#define ROUTE_TAG_PRI PRIu32
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _ZEBRA_H */