(rzlib) Get rid of two warnings on Xcode 3.2.6

This commit is contained in:
twinaphex 2014-01-11 10:08:15 +01:00
parent 3be412c58f
commit 389b362da8
3 changed files with 6 additions and 3 deletions

View File

@ -5,10 +5,13 @@
#include "gzguts.h"
extern int gzclose_w(gzFile file);
extern int gzclose_r(gzFile file);
/* 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(gzFile file)
int gzclose(gzFile file)
{
#ifndef NO_GZCOMPRESS
gz_statep state;

2
deps/rzlib/gzread.c vendored
View File

@ -544,7 +544,7 @@ int ZEXPORT gzdirect(gzFile file)
}
/* -- see zlib.h -- */
int ZEXPORT gzclose_r(gzFile file)
int gzclose_r(gzFile file)
{
int ret, err;
gz_statep state;

View File

@ -515,7 +515,7 @@ int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
}
/* -- see zlib.h -- */
int ZEXPORT gzclose_w(gzFile file)
int gzclose_w(gzFile file)
{
int ret = Z_OK;
gz_statep state;