mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	thread.c: fix for older gcc
* thread.c (only_if_constant): get rid of __builtin_choose_expr() on older gcc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									97d3b04c9b
								
							
						
					
					
						commit
						adfce27ee0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								thread.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								thread.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -145,7 +145,7 @@ static inline void blocking_region_end(rb_thread_t *th, struct rb_blocking_regio
 | 
			
		|||
} while(0)
 | 
			
		||||
 | 
			
		||||
#ifdef __GNUC__
 | 
			
		||||
#ifdef HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR
 | 
			
		||||
#ifdef HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P
 | 
			
		||||
#define only_if_constant(expr, notconst) __builtin_choose_expr(__builtin_constant_p(expr), (expr), (notconst))
 | 
			
		||||
#else
 | 
			
		||||
#define only_if_constant(expr, notconst) (__builtin_constant_p(expr) ? (expr) : (notconst))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue