diff options
Diffstat (limited to 'perform/zip_perf.c')
-rw-r--r-- | perform/zip_perf.c | 25 |
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 */ |