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.0.6~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f172e34eeed83c4bcfdd1c0c1db0d6c66450034a;p=thirdparty%2Fzlib-ng.git Don't define HASH_SIZE if it is already defined. --- diff --git a/deflate.h b/deflate.h index eddb702a..1a1f4d16 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 */