From 88b91373d630887c08b658584de19e01deb8cdde Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 1 Jun 2001 11:18:01 -0500 Subject: [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). --- src/H5FDmpio.h | 6 ++++++ 1 file changed, 6 insertions(+) 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*/ -- cgit v0.12