Skip to content

Commit

Permalink
Restore gzgetc_ for backward compatibility with 1.2.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Feb 18, 2012
1 parent 6838df9 commit d81e721
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions as400/bndsrc
Expand Up @@ -190,6 +190,12 @@ STRPGMEXP PGMLVL(*CURRENT) SIGNATURE('ZLIB')
EXPORT SYMBOL("deflateResetKeep")
EXPORT SYMBOL("deflatePending")

/********************************************************************/
/* *MODULE GZWRITE ZLIB 01/02/01 00:15:09 */
/********************************************************************/

EXPORT SYMBOL("gzgetc_")

/********************************************************************/
/* *MODULE INFLATE ZLIB 01/02/01 00:15:09 */
/********************************************************************/
Expand Down
3 changes: 3 additions & 0 deletions as400/zlib.inc
Expand Up @@ -187,6 +187,9 @@
D c 10I 0 value Character to write
*
D gzgetc PR 10i 0 extproc('gzgetc')
D file value like(gzFile) File pointer
*
D gzgetc_ PR 10i 0 extproc('gzgetc_')
D file value like(gzFile) File pointer
*
D gzungetc PR 10i 0 extproc('gzungetc')
Expand Down
1 change: 1 addition & 0 deletions contrib/vstudio/vc10/zlibvc.def
Expand Up @@ -131,5 +131,6 @@ EXPORTS
inflateUndermine @160

; zlib1 v1.2.6 added:
gzgetc_ @161
inflateResetKeep @163
deflateResetKeep @164
1 change: 1 addition & 0 deletions contrib/vstudio/vc9/zlibvc.def
Expand Up @@ -131,5 +131,6 @@ EXPORTS
inflateUndermine @160

; zlib1 v1.2.6 added:
gzgetc_ @161
inflateResetKeep @163
deflateResetKeep @164
6 changes: 6 additions & 0 deletions gzread.c
Expand Up @@ -408,6 +408,12 @@ int ZEXPORT gzgetc(file)
return ret < 1 ? -1 : buf[0];
}

int ZEXPORT gzgetc_(file)
gzFile file;
{
return gzgetc(file);
}

/* -- see zlib.h -- */
int ZEXPORT gzungetc(c, file)
int c;
Expand Down
1 change: 1 addition & 0 deletions win32/zlib.def
Expand Up @@ -80,3 +80,4 @@ EXPORTS
inflateUndermine
inflateResetKeep
deflateResetKeep
gzgetc_
1 change: 1 addition & 0 deletions zconf.h
Expand Up @@ -67,6 +67,7 @@
# define gzerror z_gzerror
# define gzflush z_gzflush
# define gzgetc z_gzgetc
# define gzgetc_ z_gzgetc_
# define gzgets z_gzgets
# define gzoffset z_gzoffset
# define gzoffset64 z_gzoffset64
Expand Down
1 change: 1 addition & 0 deletions zconf.h.cmakein
Expand Up @@ -69,6 +69,7 @@
# define gzerror z_gzerror
# define gzflush z_gzflush
# define gzgetc z_gzgetc
# define gzgetc_ z_gzgetc_
# define gzgets z_gzgets
# define gzoffset z_gzoffset
# define gzoffset64 z_gzoffset64
Expand Down
1 change: 1 addition & 0 deletions zconf.h.in
Expand Up @@ -67,6 +67,7 @@
# define gzerror z_gzerror
# define gzflush z_gzflush
# define gzgetc z_gzgetc
# define gzgetc_ z_gzgetc_
# define gzgets z_gzgets
# define gzoffset z_gzoffset
# define gzoffset64 z_gzoffset64
Expand Down
1 change: 1 addition & 0 deletions zlib.h
Expand Up @@ -1649,6 +1649,7 @@ struct gzFile_s {
unsigned char *next;
z_off64_t pos;
};
ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
#ifdef Z_PREFIX_SET
# undef z_gzgetc
# define z_gzgetc(g) \
Expand Down
1 change: 1 addition & 0 deletions zlib.map
Expand Up @@ -73,5 +73,6 @@ ZLIB_1.2.5.1 {

ZLIB_1.2.5.2 {
deflateResetKeep;
gzgetc_;
inflateResetKeep;
} ZLIB_1.2.5.1;

0 comments on commit d81e721

Please sign in to comment.