mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	[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
 | 
			
		||||
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):
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
    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,10 +3242,11 @@ Version 1.5.1rc02 [January 31, 2011]
 | 
			
		||||
Version 1.5.1 [February 3, 2011]
 | 
			
		||||
  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
 | 
			
		||||
    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
 | 
			
		||||
#  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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user