Repair some damage caused by -Wundef allowance.
authorMark Adler <madler@alumni.caltech.edu>
Wed, 14 Mar 2012 16:18:15 +0000 (09:18 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Wed, 14 Mar 2012 16:18:15 +0000 (09:18 -0700)
zconf.h
zconf.h.cmakein
zconf.h.in

diff --git a/zconf.h b/zconf.h
index 0154955683cdfd8bf129d0a012bf65e2cfa1b077..5338de6bcc8054f21c30bafae9f567bb0c2c8920 100644 (file)
--- a/zconf.h
+++ b/zconf.h
@@ -399,17 +399,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
 
@@ -417,7 +417,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
 
index af4e92e6c00e09c5cd265e9dd1bd787502d108dd..c08d1778a7cc4d29fb69fbcdd0b13980993f204d 100644 (file)
@@ -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
 
index 0154955683cdfd8bf129d0a012bf65e2cfa1b077..5338de6bcc8054f21c30bafae9f567bb0c2c8920 100644 (file)
@@ -399,17 +399,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
 
@@ -417,7 +417,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