blob: c0e88e6a699ff130a7619bcb329dbce1e1a36d0e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- hdf/src/cszip.c.orig Wed Mar 16 14:27:46 2005
+++ hdf/src/cszip.c Wed Mar 16 14:27:49 2005
@@ -865,6 +865,7 @@
compinfo_t *info; /* special element information */
comp_coder_szip_info_t *szip_info; /* ptr to SZIP info */
+#ifdef H4_HAVE_LIBSZ
if (SZ_encoder_enabled() == 0)
HRETURN_ERROR(DFE_NOENCODER, FAIL);
info = (compinfo_t *) access_rec->special_info;
@@ -881,6 +882,11 @@
HRETURN_ERROR(DFE_CENCODE, FAIL);
return (length);
+#else /* ifdef H4_HAVE_LIBSZ */
+
+ HRETURN_ERROR(DFE_CANTDECOMP, FAIL);
+
+#endif /* H4_HAVE_LIBSZ */
} /* HCPcszip_write() */
/*--------------------------------------------------------------------------
|