summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXuan Bai <xuanbai@hdfgroup.org>2005-01-05 16:22:28 (GMT)
committerXuan Bai <xuanbai@hdfgroup.org>2005-01-05 16:22:28 (GMT)
commit63f32322e8f512acbf95d2372bcbfa2c4a375054 (patch)
tree5ca35ccd72459a129fbc22adb11f9eba9087da28 /src
parentfdde90dcb71eaa86072edbb25477cbdd95264202 (diff)
downloadhdf5-63f32322e8f512acbf95d2372bcbfa2c4a375054.zip
hdf5-63f32322e8f512acbf95d2372bcbfa2c4a375054.tar.gz
hdf5-63f32322e8f512acbf95d2372bcbfa2c4a375054.tar.bz2
[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:
Diffstat (limited to 'src')
-rw-r--r--src/H5Z.c4
1 files changed, 4 insertions, 0 deletions
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 {