summaryrefslogtreecommitdiffstats
path: root/perform/zip_perf.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-06-10 19:53:29 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-06-10 19:53:29 (GMT)
commit2f1538cd7a5a3f35c05186ef0895c1dc98065691 (patch)
treef71c083e96bc8ee9a0cf7200d280e4f7416abc82 /perform/zip_perf.c
parent3ca52ffcc2fbd74447ce6e159e0df452389b812a (diff)
downloadhdf5-2f1538cd7a5a3f35c05186ef0895c1dc98065691.zip
hdf5-2f1538cd7a5a3f35c05186ef0895c1dc98065691.tar.gz
hdf5-2f1538cd7a5a3f35c05186ef0895c1dc98065691.tar.bz2
[svn-r5580] Purpose:
Bug Fix Description: Not all platforms have zlib. This shouldn't be compiled then. Solution: ifdef-ed the code out if the zlib wasn't specified. Platforms tested: Linux
Diffstat (limited to 'perform/zip_perf.c')
-rw-r--r--perform/zip_perf.c25
1 files changed, 23 insertions, 2 deletions
diff --git a/perform/zip_perf.c b/perform/zip_perf.c
index 0b6d00f..dd4b728 100644
--- a/perform/zip_perf.c
+++ b/perform/zip_perf.c
@@ -24,12 +24,14 @@
#include <fcntl.h>
#include <sys/time.h>
-#include "zlib.h"
-
/* our header files */
#include "hdf5.h"
#include "h5tools_utils.h"
+#ifdef H5_HAVE_ZLIB_H
+
+#include <zlib.h>
+
#if defined(MSDOS) || defined(OS2) || defined(WIN32)
# include <fcntl.h>
# include <io.h>
@@ -540,3 +542,22 @@ main(int argc, char **argv)
cleanup();
return EXIT_SUCCESS;
}
+
+#else /* H5_HAVE_ZLIB_H */
+
+/*
+ * Function: main
+ * Purpose: Dummy main() function for if HDF5 was configured without
+ * zlib stuff.
+ * Return: EXIT_SUCCESS
+ * Programmer: Bill Wendling, 10. June 2002
+ * Modifications:
+ */
+int
+main(void)
+{
+ printf("No compression IO performance because zlib was not configured\n");
+ return EXIT_SUCCESS;
+}
+
+#endif /* H5_HAVE_ZLIB_H */