summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1998-08-19 14:07:14 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1998-08-19 14:07:14 (GMT)
commit9945c358aa57514422a6479accab4df415c674d5 (patch)
tree96d8e93a9f23c20516961bd6a74a06cece066ebe /src
parent93e5190bb173a89deb7a91f72f800f6ab5769b8e (diff)
downloadhdf5-9945c358aa57514422a6479accab4df415c674d5.zip
hdf5-9945c358aa57514422a6479accab4df415c674d5.tar.gz
hdf5-9945c358aa57514422a6479accab4df415c674d5.tar.bz2
[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.
Diffstat (limited to 'src')
-rw-r--r--src/H5Smpio.c14
1 files changed, 14 insertions, 0 deletions
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 <H5Eprivate.h>
#include <H5Sprivate.h>
+#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 */