]> 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>
Fri, 24 Dec 2021 11:52:14 +0000 (12:52 +0100)
deflate.h

index eddb702af742b863b29f87789ed182c852657963..1a1f4d16f52132eba7368de74191f796b8ee49d9 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 */