Hack libpng17 to believe it's a release candidate, to remove abort() from its error handling

This commit is contained in:
Henrik Rydgård
2025-04-30 10:05:49 +02:00
parent ec878bd1b4
commit 63148c7363
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -39,9 +39,9 @@
#define PNG_INCH_CONVERSIONS_SUPPORTED
#define PNG_INFO_IMAGE_SUPPORTED
#define PNG_IO_STATE_SUPPORTED
#define PNG_MNG_FEATURES_SUPPORTED
#define PNG_MNG_READ_FEATURES_SUPPORTED
#define PNG_MNG_WRITE_FEATURES_SUPPORTED
// #define PNG_MNG_FEATURES_SUPPORTED
// #define PNG_MNG_READ_FEATURES_SUPPORTED
// #define PNG_MNG_WRITE_FEATURES_SUPPORTED
#define PNG_PALETTE_MAX_SUPPORTED
#define PNG_PROGRESSIVE_READ_SUPPORTED
#define PNG_READ_16BIT_SUPPORTED
+2 -1
View File
@@ -347,7 +347,8 @@
# define debug_handled(cond) do {} while (0)
# if PNG_LIBPNG_BUILD_BASE_TYPE >= PNG_LIBPNG_BUILD_RC
/* Make sure there are no 'UNTESTED' macros in released code: */
# define UNTESTED libpng untested code
// # define UNTESTED libpng untested code
# define UNTESTED
# endif
# define NOT_REACHED do {} while (0)
#else