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.
pull/467/head
Volker Simonis 5 years ago
parent d71dc66fa8
commit 0417609a7f
  1. 1
      zconf.h
  2. 1
      zconf.h.cmakein
  3. 1
      zconf.h.in

@ -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

@ -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

@ -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

Loading…
Cancel
Save