mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng14] Do not compile PNG_DEPRECATED, PNG_ALLOC and PNG_PRIVATE
when __GNUC__ < 3.
This commit is contained in:
parent
bfb0dba124
commit
3508343ecd
1
ANNOUNCE
1
ANNOUNCE
@ -33,6 +33,7 @@ version 1.4.12 [July 10, 2012]
|
|||||||
Changed "a+w" to "u+w" in Makefile.in to fix CVE-2012-3386.
|
Changed "a+w" to "u+w" in Makefile.in to fix CVE-2012-3386.
|
||||||
|
|
||||||
version 1.4.13beta01 [July 14, 2012]
|
version 1.4.13beta01 [July 14, 2012]
|
||||||
|
Do not compile PNG_DEPRECATED, PNG_ALLOC and PNG_PRIVATE when __GNUC__ < 3.
|
||||||
|
|
||||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
||||||
or to png-mng-implement at lists.sf.net (subscription required; visit
|
or to png-mng-implement at lists.sf.net (subscription required; visit
|
||||||
|
|||||||
1
CHANGES
1
CHANGES
@ -2875,6 +2875,7 @@ version 1.4.12 [July 10, 2012]
|
|||||||
Changed "a+w" to "u+w" in Makefile.in to fix CVE-2012-3386.
|
Changed "a+w" to "u+w" in Makefile.in to fix CVE-2012-3386.
|
||||||
|
|
||||||
version 1.4.13beta01 [July 14, 2012]
|
version 1.4.13beta01 [July 14, 2012]
|
||||||
|
Do not compile PNG_DEPRECATED, PNG_ALLOC and PNG_PRIVATE when __GNUC__ < 3.
|
||||||
|
|
||||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
||||||
or to png-mng-implement at lists.sf.net (subscription required; visit
|
or to png-mng-implement at lists.sf.net (subscription required; visit
|
||||||
|
|||||||
12
pngconf.h
12
pngconf.h
@ -1389,19 +1389,12 @@ typedef char FAR * FAR * FAR * png_charppp;
|
|||||||
# ifndef PNG_NORETURN
|
# ifndef PNG_NORETURN
|
||||||
# define PNG_NORETURN __attribute__((__noreturn__))
|
# define PNG_NORETURN __attribute__((__noreturn__))
|
||||||
# endif
|
# endif
|
||||||
|
# if __GNUC__ >= 3
|
||||||
# ifndef PNG_ALLOCATED
|
# ifndef PNG_ALLOCATED
|
||||||
# define PNG_ALLOCATED __attribute__((__malloc__))
|
# define PNG_ALLOCATED __attribute__((__malloc__))
|
||||||
# endif
|
# endif
|
||||||
# ifndef PNG_DEPRECATED
|
# ifndef PNG_DEPRECATED
|
||||||
# define PNG_DEPRECATED __attribute__((__deprecated__))
|
# define PNG_DEPRECATED __attribute__((__deprecated__))
|
||||||
# endif
|
|
||||||
|
|
||||||
/* This specifically protects structure members that should only be
|
|
||||||
* accessed from within the library, therefore should be empty during
|
|
||||||
* a library build.
|
|
||||||
*/
|
|
||||||
# ifndef PNG_DEPSTRUCT
|
|
||||||
# define PNG_DEPSTRUCT __attribute__((__deprecated__))
|
|
||||||
# endif
|
# endif
|
||||||
# ifndef PNG_PRIVATE
|
# ifndef PNG_PRIVATE
|
||||||
# if 0 /* Doesn't work so we use deprecated instead*/
|
# if 0 /* Doesn't work so we use deprecated instead*/
|
||||||
@ -1411,7 +1404,8 @@ typedef char FAR * FAR * FAR * png_charppp;
|
|||||||
# define PNG_PRIVATE \
|
# define PNG_PRIVATE \
|
||||||
__attribute__((__deprecated__))
|
__attribute__((__deprecated__))
|
||||||
# endif
|
# endif
|
||||||
# endif /* PNG_PRIVATE */
|
# endif
|
||||||
|
# endif /* __GNUC__ >= 3 */
|
||||||
# endif /* __GNUC__ */
|
# endif /* __GNUC__ */
|
||||||
#endif /* PNG_PEDANTIC_WARNINGS */
|
#endif /* PNG_PEDANTIC_WARNINGS */
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user