Fix macro redefinition for GNUC compilers > 6
GNUC compilers greater than version 6 already have the macro __always_inline defined. This fix checks GNUC version before defining the macro itself.
This commit is contained in:
		
							parent
							
								
									8f02375cc6
								
							
						
					
					
						commit
						118d5cc03f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -136,7 +136,7 @@
 | 
			
		|||
 */
 | 
			
		||||
#if defined(__CC_ARM)
 | 
			
		||||
#  define __always_inline             __forceinline
 | 
			
		||||
#elif (defined __GNUC__)
 | 
			
		||||
#elif (defined __GNUC__ && __GNUC__ <= 6)
 | 
			
		||||
#  define __always_inline             __attribute__((__always_inline__))
 | 
			
		||||
#elif (defined __ICCARM__)
 | 
			
		||||
#  define __always_inline             _Pragma("inline=forced")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue