aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-05-26 10:36:46 +0300
committerLasse Collin <lasse.collin@tukaani.org>2010-05-26 10:36:46 +0300
commit920a69a8d8e4203c5edddd829d932130eac188ea (patch)
treee1478b0896e839202014fe63b97876740d7f9f5f /debug
parentFix compilation of debug/known_sizes.c. (diff)
downloadxz-920a69a8d8e4203c5edddd829d932130eac188ea.tar.xz
Rename MIN() and MAX() to my_min() and my_max().
This should avoid some minor portability issues.
Diffstat (limited to 'debug')
-rw-r--r--debug/full_flush.c2
-rw-r--r--debug/sync_flush.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/debug/full_flush.c b/debug/full_flush.c
index ce0d2e89..67442b15 100644
--- a/debug/full_flush.c
+++ b/debug/full_flush.c
@@ -29,7 +29,7 @@ encode(size_t size, lzma_action action)
do {
if (strm.avail_in == 0 && size > 0) {
- const size_t amount = MIN(size, CHUNK);
+ const size_t amount = my_min(size, CHUNK);
strm.avail_in = fread(in, 1, amount, file_in);
strm.next_in = in;
size -= amount; // Intentionally not using avail_in.
diff --git a/debug/sync_flush.c b/debug/sync_flush.c
index a094ef75..fc2ebcb2 100644
--- a/debug/sync_flush.c
+++ b/debug/sync_flush.c
@@ -29,7 +29,7 @@ encode(size_t size, lzma_action action)
do {
if (strm.avail_in == 0 && size > 0) {
- const size_t amount = MIN(size, CHUNK);
+ const size_t amount = my_min(size, CHUNK);
strm.avail_in = fread(in, 1, amount, file_in);
strm.next_in = in;
size -= amount; // Intentionally not using avail_in.