diff options
-rw-r--r-- | src/H5Z.c | 2 | ||||
-rw-r--r-- | src/H5Zdeflate.c | 4 |
2 files changed, 6 insertions, 0 deletions
@@ -44,7 +44,9 @@ H5Z_init_interface (void) { FUNC_ENTER_NOINIT(H5Z_init_interface); +#ifdef H5_HAVE_FILTER_GZIP H5Z_register (H5Z_FILTER_DEFLATE, "deflate", H5Z_filter_deflate); +#endif /* H5_HAVE_FILTER_GZIP */ FUNC_LEAVE (SUCCEED); } diff --git a/src/H5Zdeflate.c b/src/H5Zdeflate.c index 1910115..b66012d 100644 --- a/src/H5Zdeflate.c +++ b/src/H5Zdeflate.c @@ -10,6 +10,8 @@ #include "H5MMprivate.h" #include "H5Zprivate.h" +#ifdef H5_HAVE_FILTER_GZIP + #ifdef H5_HAVE_ZLIB_H # include "zlib.h" #else @@ -152,3 +154,5 @@ done: H5MM_xfree(outbuf); FUNC_LEAVE (ret_value); } + +#endif /* H5_HAVE_FILTER_GZIP */ |