mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: Only test __cplusplus value when it's defined
In higher warning levels, clang complains about testing the value of __cplusplus when it's not defined.
This commit is contained in:
		
							parent
							
								
									99359c3998
								
							
						
					
					
						commit
						bf112940d0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -60,7 +60,7 @@ extern "C" {
 | 
			
		|||
 *     return foo;
 | 
			
		||||
 * }
 | 
			
		||||
 */
 | 
			
		||||
#if defined(__clang__) && __cplusplus >= 201103L
 | 
			
		||||
#if defined(__clang__) && defined(__cplusplus) && __cplusplus >= 201103L
 | 
			
		||||
   /* clang's fallthrough annotations are only available starting in C++11. */
 | 
			
		||||
#  define SPA_FALLTHROUGH [[clang::fallthrough]];
 | 
			
		||||
#elif __GNUC__ >= 7 || __clang_major__ >= 10
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue