Skip to content

Commit

Permalink
Improve nn.h for include in C++ projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilzschaf committed Oct 23, 2019
1 parent c1ff13e commit d540ffe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nn/nn.h
Expand Up @@ -18,6 +18,10 @@
#if !defined(_NN_H)
#define _NN_H

#ifdef __cplusplus
extern "C" {
#endif

typedef enum { SIBSON, NON_SIBSONIAN } NN_RULE;

/* "point" is a basic data structure in this package.
Expand Down Expand Up @@ -347,4 +351,8 @@ extern char* nn_version;
*/
extern int nn_test_vertice;

#ifdef __cplusplus
}
#endif

#endif /* _NN_H */

0 comments on commit d540ffe

Please sign in to comment.