comparison zlib/gzclose.c @ 2690:9ef72ee5c0b0

Update vendored zlib to 1.3.1
author Michael Pavone <pavone@retrodev.com>
date Sun, 15 Jun 2025 15:39:33 -0700
parents 00d788dac91a
children
comparison
equal deleted inserted replaced
2689:bd6e33de0972 2690:9ef72ee5c0b0
6 #include "gzguts.h" 6 #include "gzguts.h"
7 7
8 /* gzclose() is in a separate file so that it is linked in only if it is used. 8 /* gzclose() is in a separate file so that it is linked in only if it is used.
9 That way the other gzclose functions can be used instead to avoid linking in 9 That way the other gzclose functions can be used instead to avoid linking in
10 unneeded compression or decompression routines. */ 10 unneeded compression or decompression routines. */
11 int ZEXPORT gzclose(file) 11 int ZEXPORT gzclose(gzFile file) {
12 gzFile file;
13 {
14 #ifndef NO_GZCOMPRESS 12 #ifndef NO_GZCOMPRESS
15 gz_statep state; 13 gz_statep state;
16 14
17 if (file == NULL) 15 if (file == NULL)
18 return Z_STREAM_ERROR; 16 return Z_STREAM_ERROR;