Z_TREES only with ZLIB_VERNUM >= 0x1240
This commit is contained in:
@@ -137,12 +137,12 @@ Supported methods:
|
|||||||
- compress2
|
- compress2
|
||||||
- compressBound
|
- compressBound
|
||||||
- uncompress
|
- uncompress
|
||||||
|
- gzip file access functions
|
||||||
|
|
||||||
Ignored methods (they do nothing):
|
Ignored methods (they do nothing):
|
||||||
- deflateParams
|
- deflateParams
|
||||||
|
|
||||||
Unsupported methods:
|
Unsupported methods:
|
||||||
- gzip file access functions
|
|
||||||
- deflateCopy
|
- deflateCopy
|
||||||
- deflateTune
|
- deflateTune
|
||||||
- deflatePending
|
- deflatePending
|
||||||
|
|||||||
@@ -321,7 +321,12 @@ ZEXTERN int ZEXPORT z_deflate OF((z_streamp strm, int flush))
|
|||||||
strm->avail_in -= zwc->inBuffer.pos;
|
strm->avail_in -= zwc->inBuffer.pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flush == Z_FULL_FLUSH || flush == Z_BLOCK || flush == Z_TREES) return ZWRAPC_finishWithErrorMsg(strm, "Z_FULL_FLUSH, Z_BLOCK and Z_TREES are not supported!");
|
if (flush == Z_FULL_FLUSH
|
||||||
|
#if ZLIB_VERNUM >= 0x1240
|
||||||
|
|| flush == Z_TREES
|
||||||
|
#endif
|
||||||
|
|| flush == Z_BLOCK)
|
||||||
|
return ZWRAPC_finishWithErrorMsg(strm, "Z_FULL_FLUSH, Z_BLOCK and Z_TREES are not supported!");
|
||||||
|
|
||||||
if (flush == Z_FINISH) {
|
if (flush == Z_FINISH) {
|
||||||
size_t bytesLeft;
|
size_t bytesLeft;
|
||||||
|
|||||||
Reference in New Issue
Block a user