Add casts and consts to ease user conversion to C++.

You would still need to run zlib2ansi on all of the *.c files.
This commit is contained in:
Mark Adler
2013-03-24 15:18:02 -07:00
parent 0aac8cf7c4
commit e9f0b78443
6 changed files with 17 additions and 16 deletions

View File

@@ -218,7 +218,7 @@
# endif
#endif
#if defined(ZLIB_CONST) && !defined(z_const)
#if ( defined(ZLIB_CONST) || defined(__cplusplus) ) && !defined(z_const)
# define z_const const
#else
# define z_const