Made all C headers includeable from C++.

This commit is contained in:
Atgeirr Flø Rasmussen 2010-10-12 07:44:02 +00:00
parent 6530a16785
commit 799dc936cd
2 changed files with 19 additions and 0 deletions

10
dfs.h
View File

@ -20,6 +20,16 @@
#ifndef DFS_H_INCLUDED
#define DFS_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
void dfs (int size, int *ia, int *ja, int *ncolors, int *color, int* work);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -20,6 +20,10 @@
#ifndef PARTITION_H_INCLUDED
#define PARTITION_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
int
partition_unif_idx(int ndims, int nc,
const int *fine_d,
@ -50,4 +54,9 @@ partition_localidx(int nblk, const int *pi, const int *inverse,
int
partition_split_disconnected(int nc, int nneigh, const int *neigh,
int *p);
#ifdef __cplusplus
}
#endif
#endif /* PARTITION_H_INLCUDED */