diff options
Diffstat (limited to 'test/dectris_tst.c')
-rw-r--r-- | test/dectris_tst.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/dectris_tst.c b/test/dectris_tst.c index ec1c23a..2dd6354 100644 --- a/test/dectris_tst.c +++ b/test/dectris_tst.c @@ -19,10 +19,18 @@ */ #include "h5test.h" -#include <zlib.h> #include <math.h> #include <stdlib.h> +#ifdef H5_HAVE_FILTER_DEFLATE + +#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 + const char *FILENAME[] = { "dectris", NULL @@ -308,3 +316,11 @@ error: return 1; } +#else +int +main(void) +{ + TESTING("Skipped because DEFLATE filter is disabled"); + return 0; +} +#endif /* H5_HAVE_FILTER_DEFLATE */ |