From 02a2fc238c27eada6e4df8af14d363402d6bb44e Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 11 Nov 2002 15:33:42 -0500 Subject: [svn-r6071] Purpose: Code cleanup Description: Start using the H5_HAVE_FILTER_GZIP macro to enable the gzip filter. Platforms tested: Tested h5committest {arabica (fortran), eirene (fortran, C++) modi4 (parallel, fortran)}? Tested FreeBSD 4.7 (sleipnir) also --- src/H5Z.c | 2 ++ src/H5Zdeflate.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/H5Z.c b/src/H5Z.c index 9fd8e50..4016481 100644 --- a/src/H5Z.c +++ b/src/H5Z.c @@ -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 */ -- cgit v0.12