]> git.lizzy.rs Git - zlib.git/commitdiff
Change macro name in inflate.c to avoid collision in VxWorks.
authorMark Adler <madler@alumni.caltech.edu>
Thu, 17 Sep 2020 18:09:46 +0000 (11:09 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Thu, 17 Sep 2020 18:09:46 +0000 (11:09 -0700)
inflate.c

index 2c1b17f16a0fbf3463ae2b8973952aee35e03d77..dac2c74ee249321e907ac37db16ccaecd7abde04 100644 (file)
--- a/inflate.c
+++ b/inflate.c
@@ -448,10 +448,10 @@ unsigned copy;
 
 /* check function to use adler32() for zlib or crc32() for gzip */
 #ifdef GUNZIP
-#  define UPDATE(check, buf, len) \
+#  define UPDATE_CHECK(check, buf, len) \
     (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
 #else
-#  define UPDATE(check, buf, len) adler32(check, buf, len)
+#  define UPDATE_CHECK(check, buf, len) adler32(check, buf, len)
 #endif
 
 /* check macros for header crc */
@@ -1203,7 +1203,7 @@ int flush;
                 state->total += out;
                 if ((state->wrap & 4) && out)
                     strm->adler = state->check =
-                        UPDATE(state->check, put - out, out);
+                        UPDATE_CHECK(state->check, put - out, out);
                 out = left;
                 if ((state->wrap & 4) && (
 #ifdef GUNZIP
@@ -1266,7 +1266,7 @@ int flush;
     state->total += out;
     if ((state->wrap & 4) && out)
         strm->adler = state->check =
-            UPDATE(state->check, strm->next_out - out, out);
+            UPDATE_CHECK(state->check, strm->next_out - out, out);
     strm->data_type = (int)state->bits + (state->last ? 64 : 0) +
                       (state->mode == TYPE ? 128 : 0) +
                       (state->mode == LEN_ || state->mode == COPY_ ? 256 : 0);