From: Mika Lindqvist Date: Wed, 2 Jun 2021 23:38:24 +0000 (+0300) Subject: Move MIN() macro to zbuild.h X-Git-Tag: 2.0.4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4747276ffee6de9612e2dc265a7cc9e2d88328c9;p=thirdparty%2Fzlib-ng.git Move MIN() macro to zbuild.h --- diff --git a/deflate_p.h b/deflate_p.h index 102a4de06..7cad8ab0b 100644 --- a/deflate_p.h +++ b/deflate_p.h @@ -76,7 +76,4 @@ static inline int zng_tr_tally_dist(deflate_state *s, uint32_t dist, uint32_t le /* Maximum stored block length in deflate format (not including header). */ #define MAX_STORED 65535 -/* Minimum of a and b. */ -#define MIN(a, b) ((a) > (b) ? (b) : (a)) - #endif diff --git a/zbuild.h b/zbuild.h index 3bd4f4898..c68fb109e 100644 --- a/zbuild.h +++ b/zbuild.h @@ -26,4 +26,7 @@ # define z_size_t size_t #endif +/* Minimum of a and b. */ +#define MIN(a, b) ((a) > (b) ? (b) : (a)) + #endif