From e9f0b78443884bfd88ead7235bcf5a6a1adae5cd Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sun, 24 Mar 2013 15:18:02 -0700 Subject: Add casts and consts to ease user conversion to C++. You would still need to run zlib2ansi on all of the *.c files. --- zconf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zconf.h') diff --git a/zconf.h b/zconf.h index 371f755..aed84f2 100644 --- a/zconf.h +++ b/zconf.h @@ -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 -- cgit v1.2.1