diff options
Diffstat (limited to 'lib/graph.h')
| -rw-r--r-- | lib/graph.h | 12 | 
1 files changed, 10 insertions, 2 deletions
| diff --git a/lib/graph.h b/lib/graph.h index 9c80dd6..beb7f4c 100644 --- a/lib/graph.h +++ b/lib/graph.h @@ -1,10 +1,16 @@ +#pragma once +  #include <inttypes.h>  #include <math.h>  #include <stdlib.h>  #include "types.h" +#ifdef __cplusplus +extern "C" { +#endif +  typedef struct {    v_t ne;    v_t nv; @@ -13,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 + | 
