From: Nathan Moinvaziri Date: Sat, 26 Jun 2021 04:44:22 +0000 (-0700) Subject: Don't define HASH_SIZE if it is already defined. X-Git-Tag: 2.1.0-beta1~538 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d06be1bcd10db5faebdafc34a67252755b817db4;p=thirdparty%2Fzlib-ng.git Don't define HASH_SIZE if it is already defined. --- diff --git a/deflate.h b/deflate.h index 0a50afe23..8c443d0c1 100644 --- a/deflate.h +++ b/deflate.h @@ -65,7 +65,9 @@ /* Stream status */ #define HASH_BITS 16u /* log2(HASH_SIZE) */ -#define HASH_SIZE 65536u /* number of elements in hash table */ +#ifndef HASH_SIZE +# define HASH_SIZE 65536u /* number of elements in hash table */ +#endif #define HASH_MASK (HASH_SIZE - 1u) /* HASH_SIZE-1 */