Skip to content

Commit

Permalink
Move MIN() macro to zbuild.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mtl1979 committed Jun 1, 2021
1 parent c82714e commit e2c6232
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions chunkset_tpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/

#ifndef MIN
# define MIN(a, b) ((a) > (b) ? (b) : (a))
#endif

/* Returns the chunk size */
Z_INTERNAL uint32_t CHUNKSIZE(void) {
return sizeof(chunk_t);
Expand Down
3 changes: 0 additions & 3 deletions deflate_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions zbuild.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e2c6232

Please sign in to comment.