]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Don't define HASH_SIZE if it is already defined.
authorNathan Moinvaziri <nathan@solidstatenetworks.com>
Sat, 26 Jun 2021 04:44:22 +0000 (21:44 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 26 Jun 2021 06:23:26 +0000 (08:23 +0200)
deflate.h

index 0a50afe23a482470693772c24156ec4129810d6f..8c443d0c1de318f0bdd10e95865aeced82b0894c 100644 (file)
--- 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 */