Use prefix when Z_PREFIX is defined for z_errmsg too
Even though this variable does already have a "z_" prefix, it still needs to be renamed when Z_PREFIX is defined to avoid name conflicts between the standard build of zlib, not using the prefix, and custom ones, if both happen to be linked into the same executable.
This commit is contained in:
parent
1c1550729c
commit
478f9ec904
2
zconf.h
2
zconf.h
@ -168,6 +168,8 @@
|
||||
# define gz_header_s z_gz_header_s
|
||||
# define internal_state z_internal_state
|
||||
|
||||
/* variable from zutil.h */
|
||||
# define z_errmsg z_z_errmsg
|
||||
#endif
|
||||
|
||||
#if defined(__MSDOS__) && !defined(MSDOS)
|
||||
|
@ -165,6 +165,8 @@
|
||||
# define gz_header_s z_gz_header_s
|
||||
# define internal_state z_internal_state
|
||||
|
||||
/* variable from zutil.h */
|
||||
# define z_errmsg z_z_errmsg
|
||||
#endif
|
||||
|
||||
#if defined(__MSDOS__) && !defined(MSDOS)
|
||||
|
@ -163,6 +163,8 @@
|
||||
# define gz_header_s z_gz_header_s
|
||||
# define internal_state z_internal_state
|
||||
|
||||
/* variable from zutil.h */
|
||||
# define z_errmsg z_z_errmsg
|
||||
#endif
|
||||
|
||||
#if defined(__MSDOS__) && !defined(MSDOS)
|
||||
|
Loading…
Reference in New Issue
Block a user