summaryrefslogtreecommitdiff
path: root/zconf.h.cmakein
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2012-03-14 09:18:15 -0700
committerMark Adler <madler@alumni.caltech.edu>2012-03-14 09:18:15 -0700
commitb18595d4c6925e97ec2c0a9e49230c189ce8fe64 (patch)
tree9f06cbf81d2236c93b801cf7439f249dabed2a0b /zconf.h.cmakein
parentcb1c1a363e885670f5030b71f2c858cd0c286327 (diff)
downloadzlib-b18595d4c6925e97ec2c0a9e49230c189ce8fe64.tar.gz
Repair some damage caused by -Wundef allowance.
Diffstat (limited to 'zconf.h.cmakein')
-rw-r--r--zconf.h.cmakein10
1 files changed, 5 insertions, 5 deletions
diff --git a/zconf.h.cmakein b/zconf.h.cmakein
index af4e92e..c08d177 100644
--- a/zconf.h.cmakein
+++ b/zconf.h.cmakein
@@ -401,17 +401,17 @@ typedef uLong FAR uLongf;
# endif
#endif
-/* accommodate both "#define _LARGEFILE64_SOURCE" and
+/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
* "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
- * though the former does not conform to the LFS document), but consider
+ * though the former does not conform to the LFS document), but considering
* both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
* equivalently requesting no 64-bit operations
*/
-#if defined(LARGEFILE64_SOURCE) && _LARGEFILE64_SOURCE == 0
+#if defined(LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
# undef _LARGEFILE64_SOURCE
#endif
-#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE == 1
+#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
# define Z_LFS64
#endif
@@ -419,7 +419,7 @@ typedef uLong FAR uLongf;
# define Z_LARGE64
#endif
-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 && defined(Z_LFS64)
+#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
# define Z_WANT64
#endif