Revisions to make pngcrush.c and gzio.c compile on MingW

This commit is contained in:
Glenn Randers-Pehrson glennrp@comcast.net
2009-04-29 20:08:55 -05:00
parent ca8ce13abb
commit e66d9d4c06
2 changed files with 14 additions and 4 deletions

View File

@@ -4,6 +4,12 @@ Version 1.6.17 (built with libpng-1.2.35 and zlib-1.2.3.2)
Defined TOO_FAR == 32767 in deflate.c (again). The definition
has continually been inadvertently omitted during zlib updates
since pngcrush version 1.6.4.
Revised handling of xcode files so at least we can get printout
of IHDR values with "pngcrush -fix -n -v xcode.png"
Changes from Thomas M. Edwards:
Revised gzio.c so it will not attempt to use fseeko/ftello on MinGW.
See http://www.gnu.org/software/hello/manual/gnulib/ftello.html
Revised pngcrush.c handling of CLOCKS_PER_SEC to work with the MinGW macro.
Version 1.6.16 (built with libpng-1.2.35 and zlib-1.2.3.2)
Added -newtimestamp and -oldtimestamp options and changed

View File

@@ -436,13 +436,17 @@
#endif
#ifndef CLOCKS_PER_SEC
#define CLOCKS_PER_SEC 1000
# define CLOCKS_PER_SEC 1000
#endif
#if CLOCKS_PER_SEC <= 100
# define TIME_T long
#ifdef __STDC__
# define TIME_T clock_t
#else
# define TIME_T float
# if CLOCKS_PER_SEC <= 100
# define TIME_T long
# else
# define TIME_T float
# endif
#endif
struct options_help {