mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Issue #20221: Removed conflicting (or circular) hypot definition
when compiled with VS 2010 or above. Initial patch by Tabrez Mohammed.
This commit is contained in:
		
							parent
							
								
									a96fd48298
								
							
						
					
					
						commit
						2d659518aa
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -141,6 +141,9 @@ Documentation
 | 
				
			||||||
Build
 | 
					Build
 | 
				
			||||||
-----
 | 
					-----
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Issue #20221: Removed conflicting (or circular) hypot definition when
 | 
				
			||||||
 | 
					  compiled with VS 2010 or above.  Initial patch by Tabrez Mohammed.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Issue #20609: Restored the ability to build 64-bit Windows binaries on
 | 
					- Issue #20609: Restored the ability to build 64-bit Windows binaries on
 | 
				
			||||||
  32-bit Windows, which was broken by the change in issue #19788.
 | 
					  32-bit Windows, which was broken by the change in issue #19788.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -213,7 +213,11 @@ typedef int pid_t;
 | 
				
			||||||
#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
 | 
					#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
 | 
				
			||||||
#define Py_IS_FINITE(X) _finite(X)
 | 
					#define Py_IS_FINITE(X) _finite(X)
 | 
				
			||||||
#define copysign _copysign
 | 
					#define copysign _copysign
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* VS 2010 and above already defines hypot as _hypot */
 | 
				
			||||||
 | 
					#if _MSC_VER < 1600
 | 
				
			||||||
#define hypot _hypot
 | 
					#define hypot _hypot
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Side by Side assemblies supported in VS 2005 and VS 2008 but not 2010*/
 | 
					/* Side by Side assemblies supported in VS 2005 and VS 2008 but not 2010*/
 | 
				
			||||||
#if _MSC_VER >= 1400 && _MSC_VER < 1600
 | 
					#if _MSC_VER >= 1400 && _MSC_VER < 1600
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue