[devel] Add __clang__ special case in pngconf.h

This commit is contained in:
Glenn Randers-Pehrson
2011-02-04 18:51:00 -06:00
parent 58bd925acc
commit 973c493e1b
3 changed files with 8 additions and 6 deletions

View File

@@ -287,10 +287,10 @@
* PNG_EXPORT function for every compiler.
*/
#ifndef PNG_FUNCTION
# ifdef __GNUC__
# if defined(__GNUC__) && !defined(__clang__)
# define PNG_FUNCTION(type, name, args, attributes)\
attributes type name args
# else /* !GNUC */
# else /* !GNUC || clang */
# 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.
*/
# ifdef __GNUC__
# if defined(__GNUC__) && !defined(__clang__)
# ifndef PNG_USE_RESULT
# define PNG_USE_RESULT __attribute__((__warn_unused_result__))
# endif