mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[master] Enabled iTXt support by default.
To ensure binary compatibility with
previous versions, the "lang" and "lang_key" members will be assumed
to be omitted from previous versions unless the current libpng
version was built with PNG_iTXt_SUPPORTED (which is otherwise no
longer necessary to gain iTXt support), as a signal that the user has
been building previous versions with PNG_iTXt_SUPPORTED as well.
This commit is contained in:
12
pngconf.h
12
pngconf.h
@@ -526,6 +526,18 @@
|
||||
* will be turned on by default in libpng-1.4.0.
|
||||
*/
|
||||
|
||||
/* If you have previously been defining PNG_iTXt_SUPPORTED, please
|
||||
* continue to do so in libpng-1.2.41 and later, until you switch to
|
||||
* libpng-1.4.0, even though it is not necessary now to gain iTXt support.
|
||||
* Your PNG_iTXt_SUPPORTED definition will be interpreted in png_set_text()
|
||||
* as a signal that you have defined it in your builds of previous libpng
|
||||
* versions that did not support iTXt by default.
|
||||
*/
|
||||
#if !defined(PNG_iTXt_SUPPORTED) && !defined(PNG_READ_iTXt_SUPPORTED) && \
|
||||
!defined(PNG_WRITE_iTXt_SUPPORTED)
|
||||
# define PNG_iTXt_NOT_PREVIOUSLY_SUPPORTED
|
||||
#endif
|
||||
|
||||
#if defined(PNG_1_0_X) || defined (PNG_1_2_X)
|
||||
# ifndef PNG_iTXt_SUPPORTED
|
||||
# ifndef PNG_NO_iTXt_SUPPORTED
|
||||
|
||||
Reference in New Issue
Block a user