diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-11-11 20:33:42 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-11-11 20:33:42 (GMT) |
commit | 02a2fc238c27eada6e4df8af14d363402d6bb44e (patch) | |
tree | 2d19f1b86de0ec2d2c01feed24c14de454bd5d8c | |
parent | b7cd698fcd799c132275f674eb52a29d334cb54b (diff) | |
download | hdf5-02a2fc238c27eada6e4df8af14d363402d6bb44e.zip hdf5-02a2fc238c27eada6e4df8af14d363402d6bb44e.tar.gz hdf5-02a2fc238c27eada6e4df8af14d363402d6bb44e.tar.bz2 |
[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
-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 */ |