mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	HAVE_STMT_AND_DECL_IN_EXPR: not for Sun C++
Because we check HAVE_STMT_AND_DECL_IN_EXPR in configure, it is peoven to work in C. But C++ situation can be different. Oracle Developer Studio is another example of such things.
This commit is contained in:
		
							parent
							
								
									80b316212a
								
							
						
					
					
						commit
						8b022da518
					
				
				
				Notes:
				
					git
				
				2020-08-21 11:05:20 +09:00 
				
			
			
			
		
		
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -67,6 +67,14 @@
 | 
			
		|||
# undef HAVE_BUILTIN___BUILTIN_ALLOCA_WITH_ALIGN
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(__SUNPRO_CC)
 | 
			
		||||
# /* Oracle  Developer Studio  12.5: GCC  compatiblity guide  says it  supports
 | 
			
		||||
#  * statement expressions.   But to our  knowledge they support  the extension
 | 
			
		||||
#  * only for C and not for C++.  Prove  me wrong.  Am happy to support them if
 | 
			
		||||
#  * there is a way. */
 | 
			
		||||
# undef HAVE_STMT_AND_DECL_IN_EXPR
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef STRINGIZE0
 | 
			
		||||
# define STRINGIZE(expr) STRINGIZE0(expr)
 | 
			
		||||
# define STRINGIZE0(expr) #expr
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue