From 63f32322e8f512acbf95d2372bcbfa2c4a375054 Mon Sep 17 00:00:00 2001 From: Xuan Bai Date: Wed, 5 Jan 2005 11:22:28 -0500 Subject: [svn-r9745] Purpose: Bug fix. Description: When building H5Z.c with Visual C++ 6.0, I got the following warning message: H5Z.c(1241) : warning C4013: 'SZ_encoder_enabled' undefined; assuming extern returning int Solution: The header file szlib.h should be included in H5Z.c in order to use SZ_encoder_enabled() function. Add the following script into H5Z.c: #ifdef H5_HAVE_SZLIB_H # include "szlib.h" #endif Platforms tested: Heping (Linux) Visual C++ 6.0 on Windows XP/2000. .NET on Windows XP. (Tested with SZIP-with-encoder and SZIP-without-encoder). Misc. update: --- src/H5Z.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/H5Z.c b/src/H5Z.c index 675e7ce..dc41a9e 100644 --- a/src/H5Z.c +++ b/src/H5Z.c @@ -31,6 +31,10 @@ #include "H5Sprivate.h" /* Dataspace functions */ #include "H5Zpkg.h" /* Data filters */ +#ifdef H5_HAVE_SZLIB_H +# include "szlib.h" +#endif + /* Local typedefs */ #ifdef H5Z_DEBUG typedef struct H5Z_stats_t { -- cgit v0.12