From 2f1538cd7a5a3f35c05186ef0895c1dc98065691 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 10 Jun 2002 14:53:29 -0500 Subject: [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 --- perform/zip_perf.c | 25 +++++++++++++++++++++++-- 1 file 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 #include -#include "zlib.h" - /* our header files */ #include "hdf5.h" #include "h5tools_utils.h" +#ifdef H5_HAVE_ZLIB_H + +#include + #if defined(MSDOS) || defined(OS2) || defined(WIN32) # include # include @@ -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 */ -- cgit v0.12