diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2001-06-01 16:18:01 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2001-06-01 16:18:01 (GMT) |
commit | 88b91373d630887c08b658584de19e01deb8cdde (patch) | |
tree | 087e2a10a9e6aae3c12b5122d11871064a3e7d0f | |
parent | fcf16f2453d59c26fc8261e59ed6309173c1c7fb (diff) | |
download | hdf5-88b91373d630887c08b658584de19e01deb8cdde.zip hdf5-88b91373d630887c08b658584de19e01deb8cdde.tar.gz hdf5-88b91373d630887c08b658584de19e01deb8cdde.tar.bz2 |
[svn-r3955] Purpose:
Bug fix
Description:
This file is not C++ friendly/compliant because the protocols
are not bracketed by the #ifdef __cplusplus macro. This was
discovered by a user attempting to use C++ with enable-parallel.
Solution:
Though we are not supporting C++ in parallel mode yet, it is
simple to add the macro bracket. It would help if C++ is supported
in the future.
Platforms tested:
modi4 (64,n32) and eirene (mpich).
-rw-r--r-- | src/H5FDmpio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5FDmpio.h b/src/H5FDmpio.h index 6296516..86ba0f7 100644 --- a/src/H5FDmpio.h +++ b/src/H5FDmpio.h @@ -47,6 +47,9 @@ typedef struct H5FD_mpio_dxpl_t { (H5FD_MPIO==H5F_get_driver_id(f)) /* Function prototypes */ +#ifdef __cplusplus +extern "C" { +#endif __DLL__ hid_t H5FD_mpio_init(void); __DLL__ herr_t H5Pset_fapl_mpio(hid_t fapl_id, MPI_Comm comm, MPI_Info info); __DLL__ herr_t H5Pget_fapl_mpio(hid_t fapl_id, MPI_Comm *comm/*out*/, @@ -59,6 +62,9 @@ __DLL__ herr_t H5FD_mpio_setup(H5FD_t *_file, MPI_Datatype btype, MPI_Datatype f haddr_t disp, hbool_t use_types); __DLL__ herr_t H5FD_mpio_wait_for_left_neighbor(H5FD_t *file); __DLL__ herr_t H5FD_mpio_signal_right_neighbor(H5FD_t *file); +#ifdef __cplusplus +} +#endif #endif /*H5_HAVE_PARALLEL*/ |