Define PNG_ZLIB_VERNUM as 0.

This commit is contained in:
Catalin
2017-01-07 01:12:11 +02:00
parent 72971d3329
commit 7f54eba05c
2 changed files with 4 additions and 3 deletions

View File

@@ -142,5 +142,6 @@ Example updating libpng files under MSW:
3) in libpng root dir run: 3) in libpng root dir run:
mingw32-make png.lo mingw32-make png.lo
(will generate pnglibconf.h and pngprefix.h, among others) (will generate pnglibconf.h and pngprefix.h, among others)
4) copy files from libpng root dir and scripts subfolder to src/png, updating old files only (other new files were not needed); 4) edit pnglibconf.h and change the value of PNG_ZLIB_VERNUM to 0.
5) commit the changes. 5) copy files from libpng root dir and scripts subfolder to src/png, updating old files only (other new files were not needed);
6) commit the changes.

View File

@@ -204,7 +204,7 @@
#define PNG_USER_HEIGHT_MAX 1000000 #define PNG_USER_HEIGHT_MAX 1000000
#define PNG_USER_WIDTH_MAX 1000000 #define PNG_USER_WIDTH_MAX 1000000
#define PNG_ZBUF_SIZE 8192 #define PNG_ZBUF_SIZE 8192
#define PNG_ZLIB_VERNUM 0x12a0 #define PNG_ZLIB_VERNUM 0
#define PNG_Z_DEFAULT_COMPRESSION (-1) #define PNG_Z_DEFAULT_COMPRESSION (-1)
#define PNG_Z_DEFAULT_NOFILTER_STRATEGY 0 #define PNG_Z_DEFAULT_NOFILTER_STRATEGY 0
#define PNG_Z_DEFAULT_STRATEGY 1 #define PNG_Z_DEFAULT_STRATEGY 1