aboutsummaryrefslogtreecommitdiff
path: root/zconf.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2013-03-24 15:18:02 -0700
committerMark Adler <madler@alumni.caltech.edu>2013-03-24 16:09:08 -0700
commite9f0b78443884bfd88ead7235bcf5a6a1adae5cd (patch)
tree05561b485bbc8fe51a56634590d8eac025a247a5 /zconf.h
parent0aac8cf7c4da2572609d177657fb5f947bf38cd2 (diff)
downloadzlib-e9f0b78443884bfd88ead7235bcf5a6a1adae5cd.tar.gz
zlib-e9f0b78443884bfd88ead7235bcf5a6a1adae5cd.tar.bz2
zlib-e9f0b78443884bfd88ead7235bcf5a6a1adae5cd.zip
Add casts and consts to ease user conversion to C++.
You would still need to run zlib2ansi on all of the *.c files.
Diffstat (limited to 'zconf.h')
-rw-r--r--zconf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zconf.h b/zconf.h
index 371f755..aed84f2 100644
--- a/zconf.h
+++ b/zconf.h
@@ -218,7 +218,7 @@
218# endif 218# endif
219#endif 219#endif
220 220
221#if defined(ZLIB_CONST) && !defined(z_const) 221#if ( defined(ZLIB_CONST) || defined(__cplusplus) ) && !defined(z_const)
222# define z_const const 222# define z_const const
223#else 223#else
224# define z_const 224# define z_const