mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Revisions to make pngcrush.c and gzio.c compile on MingW
This commit is contained in:
parent
ca8ce13abb
commit
e66d9d4c06
@@ -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
|
||||
|
||||
12
pngcrush.c
12
pngcrush.c
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user