summaryrefslogtreecommitdiffstats
path: root/src/H5Z.c
diff options
context:
space:
mode:
authorXuan Bai <xuanbai@hdfgroup.org>2005-01-05 20:37:14 (GMT)
committerXuan Bai <xuanbai@hdfgroup.org>2005-01-05 20:37:14 (GMT)
commit101a363b2de0a90f81ab06db5614ee48d26c2039 (patch)
tree4c59c94e087009160ae92e307ab2e5833f8d4940 /src/H5Z.c
parent293ec5baa69804bfda5fcf1f794372021f1a2180 (diff)
downloadhdf5-101a363b2de0a90f81ab06db5614ee48d26c2039.zip
hdf5-101a363b2de0a90f81ab06db5614ee48d26c2039.tar.gz
hdf5-101a363b2de0a90f81ab06db5614ee48d26c2039.tar.bz2
[svn-r9749] 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: Linux 2.4 (Heping) 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/H5Z.c')
-rw-r--r--src/H5Z.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Z.c b/src/H5Z.c
index 6e958f2..d92da44 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 {