From: Nathan Moinvaziri Date: Thu, 10 Mar 2022 16:53:44 +0000 (-0800) Subject: Include zutil.h for definition of DEF_MEM_LEVEL. X-Git-Tag: 2.0.7~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44122d2cfac703076af6b36125d45d6e1d7a7d9f;p=thirdparty%2Fzlib-ng.git Include zutil.h for definition of DEF_MEM_LEVEL. --- diff --git a/test/minideflate.c b/test/minideflate.c index 8a21da75..b31a50f4 100644 --- a/test/minideflate.c +++ b/test/minideflate.c @@ -15,11 +15,7 @@ #include #include "zbuild.h" -#ifdef ZLIB_COMPAT -# include "zlib.h" -#else -# include "zlib-ng.h" -#endif +#include "zutil.h" #if defined(_WIN32) || defined(__CYGWIN__) # include @@ -29,12 +25,6 @@ # 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); \