summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2013-04-14 10:31:31 -0700
committerMark Adler <madler@alumni.caltech.edu>2013-04-28 15:57:11 -0700
commitbddc968b1432f045e4630f72273f2049b211c333 (patch)
treeb3fe1a7b0152dc3501e088b38edaa0bb6d307ba7
parent5481269e1fa6d99a1799762c657f1ba7155ad922 (diff)
downloadzlib-bddc968b1432f045e4630f72273f2049b211c333.tar.gz
Do not force Z_CONST for C++.
Forcing Z_CONST resulted in an issue when compiling Firefox. Now if someone wants to compile zlib as C++ code (which it isn't), now they will need to #define Z_CONST themselves.
-rw-r--r--zconf.h2
-rw-r--r--zconf.h.cmakein2
-rw-r--r--zconf.h.in2
3 files changed, 3 insertions, 3 deletions
diff --git a/zconf.h b/zconf.h
index 7a9d8f2..9987a77 100644
--- a/zconf.h
+++ b/zconf.h
@@ -218,7 +218,7 @@
# endif
#endif
-#if ( defined(ZLIB_CONST) || defined(__cplusplus) ) && !defined(z_const)
+#if defined(ZLIB_CONST) && !defined(z_const)
# define z_const const
#else
# define z_const
diff --git a/zconf.h.cmakein b/zconf.h.cmakein
index 10e445f..043019c 100644
--- a/zconf.h.cmakein
+++ b/zconf.h.cmakein
@@ -220,7 +220,7 @@
# endif
#endif
-#if ( defined(ZLIB_CONST) || defined(__cplusplus) ) && !defined(z_const)
+#if defined(ZLIB_CONST) && !defined(z_const)
# define z_const const
#else
# define z_const
diff --git a/zconf.h.in b/zconf.h.in
index 7a9d8f2..9987a77 100644
--- a/zconf.h.in
+++ b/zconf.h.in
@@ -218,7 +218,7 @@
# endif
#endif
-#if ( defined(ZLIB_CONST) || defined(__cplusplus) ) && !defined(z_const)
+#if defined(ZLIB_CONST) && !defined(z_const)
# define z_const const
#else
# define z_const