From 9e983137615462195298bc46ebbcf96460db1add Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 13 Feb 2021 21:20:25 -0800 Subject: [PATCH] make nearest_neighbor_graph_ann.h #includable from C++ --- lib/mingle/nearest_neighbor_graph_ann.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/mingle/nearest_neighbor_graph_ann.h b/lib/mingle/nearest_neighbor_graph_ann.h index a4bf95712..76da78bc5 100644 --- a/lib/mingle/nearest_neighbor_graph_ann.h +++ b/lib/mingle/nearest_neighbor_graph_ann.h @@ -11,6 +11,14 @@ #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 */ -- 2.40.0