summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2021-06-03 02:38:24 +0300
committerHans Kristian Rosbach <hk-github@circlestorm.org>2021-06-04 20:54:28 +0200
commit4747276ffee6de9612e2dc265a7cc9e2d88328c9 (patch)
tree729d540e20c03999a18a62779bc983a134e0103d
parent9ee1c5a9ed9cb6c4996beb7648963b2c4f31b406 (diff)
Move MIN() macro to zbuild.h
-rw-r--r--deflate_p.h3
-rw-r--r--zbuild.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/deflate_p.h b/deflate_p.h
index 102a4de..7cad8ab 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 3bd4f48..c68fb10 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