summaryrefslogtreecommitdiff
path: root/lib/graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/graph.h')
-rw-r--r--lib/graph.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/graph.h b/lib/graph.h
index cb47faa..beb7f4c 100644
--- a/lib/graph.h
+++ b/lib/graph.h
@@ -7,6 +7,10 @@
#include "types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
v_t ne;
v_t nv;
@@ -15,8 +19,10 @@ typedef struct {
} graph_t;
graph_t *graph_create_square(D_t D, L_t L);
-
graph_t *graph_add_ext(const graph_t *G);
-
void graph_free(graph_t *h);
+#ifdef __cplusplus
+}
+#endif
+