From d2a9ddeb6cc58284996fbc5367877c99fee8914e Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Sun, 10 May 2009 20:10:13 +1000 Subject: general warning cleanup --- archival/gzip.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'archival/gzip.c') 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) * trees or store, and output the encoded block to the zip file. This function * returns the total compressed length for the file so far. */ +#ifdef __MINGW32__ +#define eof eof_ +#endif static ulg flush_block(char *buf, ulg stored_len, int eof) { 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) return G2.compressed_len >> 3; } +#ifdef __MINGW32__ +#undef eof +#endif /* =========================================================================== -- cgit v1.2.3-55-g6feb