summaryrefslogtreecommitdiff
path: root/lib/graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/graph.h')
-rw-r--r--lib/graph.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/graph.h b/lib/graph.h
index 87262a07b8..8e126e6be4 100644
--- a/lib/graph.h
+++ b/lib/graph.h
@@ -28,6 +28,10 @@
#include "vector.h"
#include "buffer.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct graph {
vector nodes;
};
@@ -164,4 +168,9 @@ char *graph_dump_dot(struct graph *graph, struct graph_node *start,
void (*pcb)(struct graph_node *, struct buffer *buf));
#endif /* BUILDING_CLIPPY */
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _ZEBRA_COMMAND_GRAPH_H */