summaryrefslogtreecommitdiffhomepage
path: root/contrib/zlib/gzclose.c
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-03-06 21:47:34 +0100
committerAki <please@ignore.pl>2024-03-06 21:47:34 +0100
commita85fcbf8720562e77e0441ac26cb99d89564400c (patch)
treea15d30b7d00645685c50c291871d34aa5b188bc0 /contrib/zlib/gzclose.c
parent54fa233a00607b9436c03c78b50b9107a33baa0a (diff)
parent1c558822681bbed5121bcc19816cbbac6a437b2a (diff)
downloadstarshatter-a85fcbf8720562e77e0441ac26cb99d89564400c.zip
starshatter-a85fcbf8720562e77e0441ac26cb99d89564400c.tar.gz
starshatter-a85fcbf8720562e77e0441ac26cb99d89564400c.tar.bz2
External projects with established upstream are no longer part of this source tree
Diffstat (limited to 'contrib/zlib/gzclose.c')
-rw-r--r--contrib/zlib/gzclose.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/contrib/zlib/gzclose.c b/contrib/zlib/gzclose.c
deleted file mode 100644
index caeb99a..0000000
--- a/contrib/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
-}