Fix '--zprefix' feature.

Configuring with '--zprefix' allows building zlib with all exported symbols prefixed by 'z_'. Unfortunately, 'z_errmsg' was forgotten and is not prefixed. This change fixes the problem.
This commit is contained in:
Volker Simonis 2020-01-12 11:38:34 +01:00
parent d71dc66fa8
commit 0417609a7f
3 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,7 @@
# define uncompress2 z_uncompress2 # define uncompress2 z_uncompress2
# endif # endif
# define zError z_zError # define zError z_zError
# define z_errmsg z_z_errmsg
# ifndef Z_SOLO # ifndef Z_SOLO
# define zcalloc z_zcalloc # define zcalloc z_zcalloc
# define zcfree z_zcfree # define zcfree z_zcfree

View File

@ -132,6 +132,7 @@
# define uncompress2 z_uncompress2 # define uncompress2 z_uncompress2
# endif # endif
# define zError z_zError # define zError z_zError
# define z_errmsg z_z_errmsg
# ifndef Z_SOLO # ifndef Z_SOLO
# define zcalloc z_zcalloc # define zcalloc z_zcalloc
# define zcfree z_zcfree # define zcfree z_zcfree

View File

@ -130,6 +130,7 @@
# define uncompress2 z_uncompress2 # define uncompress2 z_uncompress2
# endif # endif
# define zError z_zError # define zError z_zError
# define z_errmsg z_z_errmsg
# ifndef Z_SOLO # ifndef Z_SOLO
# define zcalloc z_zcalloc # define zcalloc z_zcalloc
# define zcfree z_zcfree # define zcfree z_zcfree