]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Include zutil.h for definition of DEF_MEM_LEVEL.
authorNathan Moinvaziri <nathan@nathanm.com>
Thu, 10 Mar 2022 16:53:44 +0000 (08:53 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 16 Mar 2022 10:42:45 +0000 (11:42 +0100)
test/minideflate.c

index 7ee07e6d40cdf0b9cfc6fb4662e7ae01052811cd..47c58a55bda3cc3721bf0d177581f35ef9ad7a85 100644 (file)
@@ -7,11 +7,7 @@
 #include <assert.h>
 
 #include "zbuild.h"
-#ifdef ZLIB_COMPAT
-#  include "zlib.h"
-#else
-#  include "zlib-ng.h"
-#endif
+#include "zutil.h"
 
 #if defined(_WIN32) || defined(__CYGWIN__)
 #  include <fcntl.h>
 #  define SET_BINARY_MODE(file)
 #endif
 
-#if MAX_MEM_LEVEL >= 8
-#  define DEF_MEM_LEVEL 8
-#else
-#  define DEF_MEM_LEVEL  MAX_MEM_LEVEL
-#endif
-
 #define CHECK_ERR(err, msg) { \
     if (err != Z_OK) { \
         fprintf(stderr, "%s error: %d\n", msg, err); \