mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	 849e0716d3
			
		
	
	
		849e0716d3
		
			
		
	
	
	
	
		
			
			This includes adding what should be a relatively temporary `Modules/_decimal/windows/mpdecimal.h` shim to choose between `mpdecimal32vc.h` or `mpdecimal64vc.h` based on which of `CONFIG_64` or `CONFIG_32` is defined.
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			443 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			443 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* Windows mpdecimal.h shim
 | |
|  *
 | |
|  * Generally, the mpdecimal library build will copy the correct header into
 | |
|  * place named "mpdecimal.h", but since we're building it ourselves directly
 | |
|  * into _decimal.pyd, we need to pick the right one.
 | |
|  *
 | |
|  * */
 | |
| 
 | |
| #if defined(_MSC_VER)
 | |
|   #if defined(CONFIG_64)
 | |
|     #include <mpdecimal64vc.h>
 | |
|   #elif defined(CONFIG_32)
 | |
|     #include <mpdecimal32vc.h>
 | |
|   #else
 | |
|     #error "Unknown configuration!"
 | |
|   #endif
 | |
| #endif
 |