summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-06-01 16:17:56 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-06-01 16:17:56 (GMT)
commitbe45b84db1070d57425549ae8d1ebf3ec5d1993a (patch)
tree828e1ea9cee6050734cbc52ba50ec2931fd8a6aa /src
parent89d60c40b4ec3fc6149d06712292029a8c5ad8c3 (diff)
downloadhdf5-be45b84db1070d57425549ae8d1ebf3ec5d1993a.zip
hdf5-be45b84db1070d57425549ae8d1ebf3ec5d1993a.tar.gz
hdf5-be45b84db1070d57425549ae8d1ebf3ec5d1993a.tar.bz2
[svn-r3954] 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).
Diffstat (limited to 'src')
-rw-r--r--src/H5FDmpio.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/H5FDmpio.h b/src/H5FDmpio.h
index c2522ba..86ba0f7 100644
--- a/src/H5FDmpio.h
+++ b/src/H5FDmpio.h
@@ -1,6 +1,6 @@
/*
- * Copyright © 1999 NCSA
- * All rights reserved.
+ * Copyright © 1999-2001 NCSA
+ * All rights reserved.
*
* Programmer: Robb Matzke <matzke@llnl.gov>
* Monday, August 2, 1999
@@ -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*/