From 0417609a7f9862aba3dcdad232fed34a91b85942 Mon Sep 17 00:00:00 2001 From: Volker Simonis Date: Sun, 12 Jan 2020 11:38:34 +0100 Subject: [PATCH] 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. --- zconf.h | 1 + zconf.h.cmakein | 1 + zconf.h.in | 1 + 3 files changed, 3 insertions(+) diff --git a/zconf.h b/zconf.h index 5e1d68a..5953d7d 100644 --- a/zconf.h +++ b/zconf.h @@ -130,6 +130,7 @@ # define uncompress2 z_uncompress2 # endif # define zError z_zError +# define z_errmsg z_z_errmsg # ifndef Z_SOLO # define zcalloc z_zcalloc # define zcfree z_zcfree diff --git a/zconf.h.cmakein b/zconf.h.cmakein index a7f24cc..7658ad4 100644 --- a/zconf.h.cmakein +++ b/zconf.h.cmakein @@ -132,6 +132,7 @@ # define uncompress2 z_uncompress2 # endif # define zError z_zError +# define z_errmsg z_z_errmsg # ifndef Z_SOLO # define zcalloc z_zcalloc # define zcfree z_zcfree diff --git a/zconf.h.in b/zconf.h.in index 5e1d68a..5953d7d 100644 --- a/zconf.h.in +++ b/zconf.h.in @@ -130,6 +130,7 @@ # define uncompress2 z_uncompress2 # endif # define zError z_zError +# define z_errmsg z_z_errmsg # ifndef Z_SOLO # define zcalloc z_zcalloc # define zcfree z_zcfree