From 9a7dd0a0770178529c704c08bc446e3533b1f3e5 Mon Sep 17 00:00:00 2001 From: Julian Laubstein Date: Wed, 4 Nov 2015 22:32:11 +0100 Subject: Outsourced all libraries into submodules --- lib/zlib | 1 + lib/zlib/gzclose.c | 25 ------------------------- 2 files changed, 1 insertion(+), 25 deletions(-) create mode 160000 lib/zlib delete mode 100644 lib/zlib/gzclose.c (limited to 'lib/zlib/gzclose.c') diff --git a/lib/zlib b/lib/zlib new file mode 160000 index 000000000..aae8d8238 --- /dev/null +++ b/lib/zlib @@ -0,0 +1 @@ +Subproject commit aae8d8238798ea8ba2004631112d74c82d4021b4 diff --git a/lib/zlib/gzclose.c b/lib/zlib/gzclose.c deleted file mode 100644 index caeb99a31..000000000 --- a/lib/zlib/gzclose.c +++ /dev/null @@ -1,25 +0,0 @@ -/* gzclose.c -- zlib gzclose() function - * Copyright (C) 2004, 2010 Mark Adler - * For conditions of distribution and use, see copyright notice in zlib.h - */ - -#include "gzguts.h" - -/* gzclose() is in a separate file so that it is linked in only if it is used. - That way the other gzclose functions can be used instead to avoid linking in - unneeded compression or decompression routines. */ -int ZEXPORT gzclose(file) - gzFile file; -{ -#ifndef NO_GZCOMPRESS - gz_statep state; - - if (file == NULL) - return Z_STREAM_ERROR; - state = (gz_statep)file; - - return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); -#else - return gzclose_r(file); -#endif -} -- cgit v1.2.3