]> granicus.if.org Git - graphviz/commitdiff
make nearest_neighbor_graph_ann.h #includable from C++
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 14 Feb 2021 05:20:25 +0000 (21:20 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 20 Feb 2021 16:03:52 +0000 (08:03 -0800)
lib/mingle/nearest_neighbor_graph_ann.h

index a4bf95712e4e7bc9b27b3603a9003ca17891fc75..76da78bc5e532877aa66d1545f47c6f59c455c95 100644 (file)
 #ifndef NEAREST_NEIGHBOR_GRAPH_ANN_H
 #define NEAREST_NEIGHBOR_GRAPH_ANN_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 void nearest_neighbor_graph_ann(int nPts, int dim, int k, double eps, double *x, int *nz0, int **irn0, int **jcn0, double **val0);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* NEAREST_NEIGHBOR_GRAPH_ANN_H */