diff options
author | Lei Zhang <thestig@chromium.org> | 2017-03-31 13:33:12 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-31 20:51:48 +0000 |
commit | a2af7de2e32e6938dd825acb8df775b11ec95510 (patch) | |
tree | 883664ee920a8fd64dbc96bec8cb59fe1c7ce760 /third_party/zlib_v1211/gzclose.c | |
parent | bdbb0bd92bfca52e574106c4ce5f93d9d34d3373 (diff) | |
download | pdfium-a2af7de2e32e6938dd825acb8df775b11ec95510.tar.xz |
Move zlib to a DEPS-based checkout.
BUG=chromium:541704
Change-Id: I313d8853450ff5940b3baa4054ff441b342c46b7
Reviewed-on: https://pdfium-review.googlesource.com/3350
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'third_party/zlib_v1211/gzclose.c')
-rw-r--r-- | third_party/zlib_v1211/gzclose.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/third_party/zlib_v1211/gzclose.c b/third_party/zlib_v1211/gzclose.c deleted file mode 100644 index caeb99a317..0000000000 --- a/third_party/zlib_v1211/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 -} |