From be45b84db1070d57425549ae8d1ebf3ec5d1993a Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 1 Jun 2001 11:17:56 -0500 Subject: [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). --- src/H5FDmpio.h | 10 ++++++++-- 1 file 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 * 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*/ -- cgit v0.12