From 9945c358aa57514422a6479accab4df415c674d5 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 19 Aug 1998 09:07:14 -0500 Subject: [svn-r604] Added #ifdef HAVE_PARALLEL macro so that the code is compiled only in parallel version but an "empty" source in the serial version. Tested in solaris 2.5. --- src/H5Smpio.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/H5Smpio.c b/src/H5Smpio.c index f91738f..122e322 100644 --- a/src/H5Smpio.c +++ b/src/H5Smpio.c @@ -14,6 +14,18 @@ #include #include +#ifndef HAVE_PARALLEL +/* + * The H5S_mpio_xxxx functions are for parallel I/O only and are + * valid only when HAVE_PARALLEL is #defined. This empty #ifndef + * body is used to allow this source file be included in the serial + * distribution. + * Some compilers/linkers may complain about "empty" object file. + * If that happens, uncomment the following statement to pacify + * them. + */ +/* const hbool_t H5S_mpio_avail = FALSE; */ +#else /* HAVE_PARALLEL */ /* Interface initialization */ #define PABLO_MASK H5S_all_mask #define INTERFACE_INIT NULL @@ -555,3 +567,5 @@ H5S_mpio_spaces_write(H5F_t *f, const struct H5O_layout_t *layout, FUNC_LEAVE (ret_value); } /* H5S_mpio_spaces_write() */ + +#endif /* HAVE_PARALLEL */ -- cgit v0.12