[devel] Add __clang__ special case in pngconf.h
This commit is contained in:
parent
58bd925acc
commit
973c493e1b
5
ANNOUNCE
5
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.5.2beta01 - February 4, 2011
|
Libpng 1.5.2beta01 - February 5, 2011
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
This is not intended to be a public release. It will be replaced
|
||||||
within a few weeks by a public version or by another test version.
|
within a few weeks by a public version or by another test version.
|
||||||
@ -26,10 +26,11 @@ Other information:
|
|||||||
|
|
||||||
Changes since the last public release (1.5.1):
|
Changes since the last public release (1.5.1):
|
||||||
|
|
||||||
Version 1.5.2beta01 [February 4, 2011]
|
Version 1.5.2beta01 [February 5, 2011]
|
||||||
More -Wshadow fixes for older gcc compilers. Older gcc versions apparently
|
More -Wshadow fixes for older gcc compilers. Older gcc versions apparently
|
||||||
check formal parameters names in function declarations (as well as
|
check formal parameters names in function declarations (as well as
|
||||||
definitions) to see if they match a name in the global namespace.
|
definitions) to see if they match a name in the global namespace.
|
||||||
|
Add __clang__ special case in pngconf.h
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
3
CHANGES
3
CHANGES
@ -3242,10 +3242,11 @@ Version 1.5.1rc02 [January 31, 2011]
|
|||||||
Version 1.5.1 [February 3, 2011]
|
Version 1.5.1 [February 3, 2011]
|
||||||
No changes.
|
No changes.
|
||||||
|
|
||||||
Version 1.5.2beta01 [February 4, 2011]
|
Version 1.5.2beta01 [February 5, 2011]
|
||||||
More -Wshadow fixes for older gcc compilers. Older gcc versions apparently
|
More -Wshadow fixes for older gcc compilers. Older gcc versions apparently
|
||||||
check formal parameters names in function declarations (as well as
|
check formal parameters names in function declarations (as well as
|
||||||
definitions) to see if they match a name in the global namespace.
|
definitions) to see if they match a name in the global namespace.
|
||||||
|
Add __clang__ special case in pngconf.h
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
@ -287,10 +287,10 @@
|
|||||||
* PNG_EXPORT function for every compiler.
|
* PNG_EXPORT function for every compiler.
|
||||||
*/
|
*/
|
||||||
#ifndef PNG_FUNCTION
|
#ifndef PNG_FUNCTION
|
||||||
# ifdef __GNUC__
|
# if defined(__GNUC__) && !defined(__clang__)
|
||||||
# define PNG_FUNCTION(type, name, args, attributes)\
|
# define PNG_FUNCTION(type, name, args, attributes)\
|
||||||
attributes type name args
|
attributes type name args
|
||||||
# else /* !GNUC */
|
# else /* !GNUC || clang */
|
||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
# define PNG_FUNCTION(type, name, args, attributes)\
|
# define PNG_FUNCTION(type, name, args, attributes)\
|
||||||
attributes type name args
|
attributes type name args
|
||||||
@ -347,7 +347,7 @@
|
|||||||
* functions in png.h will generate compiler warnings. Added at libpng
|
* functions in png.h will generate compiler warnings. Added at libpng
|
||||||
* version 1.2.41.
|
* version 1.2.41.
|
||||||
*/
|
*/
|
||||||
# ifdef __GNUC__
|
# if defined(__GNUC__) && !defined(__clang__)
|
||||||
# ifndef PNG_USE_RESULT
|
# ifndef PNG_USE_RESULT
|
||||||
# define PNG_USE_RESULT __attribute__((__warn_unused_result__))
|
# define PNG_USE_RESULT __attribute__((__warn_unused_result__))
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user