Commit 2f247678 authored by Jonas Termansen's avatar Jonas Termansen

Remove NO_GZCOMPRESS.

parent a115aaf3
......@@ -10,7 +10,6 @@
unneeded compression or decompression routines. */
int ZEXPORT gzclose(gzFile file)
{
#ifndef NO_GZCOMPRESS
gz_state *state;
if (file == NULL)
......@@ -18,7 +17,4 @@ int ZEXPORT gzclose(gzFile file)
state = (gz_state *)file;
return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
#else
return gzclose_r(file);
#endif
}
......@@ -59,14 +59,12 @@ static gzFile gz_open(const char *path,
case 'r':
state->mode = GZ_READ;
break;
#ifndef NO_GZCOMPRESS
case 'w':
state->mode = GZ_WRITE;
break;
case 'a':
state->mode = GZ_APPEND;
break;
#endif
case '+': /* can't read and write at the same time */
free(state);
return NULL;
......
......@@ -60,9 +60,6 @@ unsigned long ZEXPORT zlibCompileFlags(void)
#endif
#ifdef ZLIB_WINAPI
flags += 1 << 10;
#endif
#ifdef NO_GZCOMPRESS
flags += 1L << 16;
#endif
/* The operating system must have modern and secure printf functions. */
flags += 0L << 24;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment