From cde5029461edd921e8f84dabed9eb8f01a704dba Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Wed, 9 Jan 2013 14:23:18 -0500 Subject: [svn-r23146] The test on Windows shows it doesn't have zlib.h. I added a macro condition to verify it before include it. Tested on koala. --- hl/test/test_dset_opt.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hl/test/test_dset_opt.c b/hl/test/test_dset_opt.c index 0a0674b..79f7eda 100644 --- a/hl/test/test_dset_opt.c +++ b/hl/test/test_dset_opt.c @@ -18,9 +18,15 @@ #include "h5hltest.h" #include "H5srcdir.h" #include "H5DOpublic.h" -#include #include +#if defined(H5_HAVE_ZLIB_H) && !defined(H5_ZLIB_HEADER) +# define H5_ZLIB_HEADER "zlib.h" +#endif +#if defined(H5_ZLIB_HEADER) +# include H5_ZLIB_HEADER /* "zlib.h" */ +#endif + #define FILE_NAME "test_dectris.h5" #define DATASETNAME1 "direct_write" -- cgit v0.12