[devel] Reverted the "__clang__" special case in pngconf.h
This commit is contained in:
parent
973c493e1b
commit
a257f80d95
5
ANNOUNCE
5
ANNOUNCE
@ -1,5 +1,5 @@
|
||||
|
||||
Libpng 1.5.2beta01 - February 5, 2011
|
||||
Libpng 1.5.2beta01 - February 6, 2011
|
||||
|
||||
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.
|
||||
@ -26,11 +26,10 @@ Other information:
|
||||
|
||||
Changes since the last public release (1.5.1):
|
||||
|
||||
Version 1.5.2beta01 [February 5, 2011]
|
||||
Version 1.5.2beta01 [February 6, 2011]
|
||||
More -Wshadow fixes for older gcc compilers. Older gcc versions apparently
|
||||
check formal parameters names in function declarations (as well as
|
||||
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:
|
||||
(subscription required; visit
|
||||
|
3
CHANGES
3
CHANGES
@ -3242,11 +3242,10 @@ Version 1.5.1rc02 [January 31, 2011]
|
||||
Version 1.5.1 [February 3, 2011]
|
||||
No changes.
|
||||
|
||||
Version 1.5.2beta01 [February 5, 2011]
|
||||
Version 1.5.2beta01 [February 6, 2011]
|
||||
More -Wshadow fixes for older gcc compilers. Older gcc versions apparently
|
||||
check formal parameters names in function declarations (as well as
|
||||
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
|
||||
(subscription required; visit
|
||||
|
@ -287,10 +287,10 @@
|
||||
* PNG_EXPORT function for every compiler.
|
||||
*/
|
||||
#ifndef PNG_FUNCTION
|
||||
# if defined(__GNUC__) && !defined(__clang__)
|
||||
# if defined(__GNUC__)
|
||||
# define PNG_FUNCTION(type, name, args, attributes)\
|
||||
attributes type name args
|
||||
# else /* !GNUC || clang */
|
||||
# else /* !GNUC */
|
||||
# ifdef _MSC_VER
|
||||
# define PNG_FUNCTION(type, name, args, attributes)\
|
||||
attributes type name args
|
||||
@ -347,7 +347,7 @@
|
||||
* functions in png.h will generate compiler warnings. Added at libpng
|
||||
* version 1.2.41.
|
||||
*/
|
||||
# if defined(__GNUC__) && !defined(__clang__)
|
||||
# if defined(__GNUC__)
|
||||
# ifndef PNG_USE_RESULT
|
||||
# define PNG_USE_RESULT __attribute__((__warn_unused_result__))
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user