diff options
Diffstat (limited to 'archival/gzip.c')
-rw-r--r-- | archival/gzip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index fdf2a794c..14d1ef2b0 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -1589,6 +1589,9 @@ static void compress_block(ct_data * ltree, ct_data * dtree) | |||
1589 | * trees or store, and output the encoded block to the zip file. This function | 1589 | * trees or store, and output the encoded block to the zip file. This function |
1590 | * returns the total compressed length for the file so far. | 1590 | * returns the total compressed length for the file so far. |
1591 | */ | 1591 | */ |
1592 | #ifdef __MINGW32__ | ||
1593 | #define eof eof_ | ||
1594 | #endif | ||
1592 | static ulg flush_block(char *buf, ulg stored_len, int eof) | 1595 | static ulg flush_block(char *buf, ulg stored_len, int eof) |
1593 | { | 1596 | { |
1594 | ulg opt_lenb, static_lenb; /* opt_len and static_len in bytes */ | 1597 | ulg opt_lenb, static_lenb; /* opt_len and static_len in bytes */ |
@@ -1672,6 +1675,9 @@ static ulg flush_block(char *buf, ulg stored_len, int eof) | |||
1672 | 1675 | ||
1673 | return G2.compressed_len >> 3; | 1676 | return G2.compressed_len >> 3; |
1674 | } | 1677 | } |
1678 | #ifdef __MINGW32__ | ||
1679 | #undef eof | ||
1680 | #endif | ||
1675 | 1681 | ||
1676 | 1682 | ||
1677 | /* =========================================================================== | 1683 | /* =========================================================================== |