Added extern "C" statements for C++ compatibility.

This commit is contained in:
Atgeirr Flø Rasmussen 2010-09-24 09:07:50 +00:00
parent f3e5ad1723
commit 767b9f3b8b
3 changed files with 28 additions and 0 deletions

View File

@ -3,6 +3,11 @@
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
enum flowbc_type { UNSET, PRESSURE, FLUX };
typedef struct {
@ -17,4 +22,9 @@ allocate_flowbc(size_t nf);
void
deallocate_flowbc(flowbc_t *fbc);
#ifdef __cplusplus
}
#endif
#endif /* FLOW_BC_H_INCLUDED */

View File

@ -3,6 +3,10 @@
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
#if defined(MATLAB_MEX_FILE) && MATLAB_MEX_FILE
#include <mex.h>
#undef MAT_SIZE_T
@ -46,4 +50,8 @@ csrmatrix_delete(struct CSRMatrix *A);
void
csrmatrix_zero(struct CSRMatrix *A);
#ifdef __cplusplus
}
#endif
#endif /* SPARSE_SYS_H_INCLUDED */

10
well.h
View File

@ -1,6 +1,11 @@
#ifndef WELL_H_INCLUDED
#define WELL_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
enum well_type { INJECTOR, PRODUCER };
enum well_control { BHP , RATE };
@ -25,4 +30,9 @@ deallocate_cell_wells(int *cvpos, int *cwells);
void
derive_cell_wells(int nc, well_t *W, int *cwpos, int *cwells);
#ifdef __cplusplus
}
#endif
#endif /* WELL_H_INCLUDED */