mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-115119: Switch Windows build to mpdecimal external (GH-115182)
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.
This commit is contained in:
parent
7707b14489
commit
849e0716d3
7 changed files with 117 additions and 63 deletions
17
Modules/_decimal/windows/mpdecimal.h
Normal file
17
Modules/_decimal/windows/mpdecimal.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* 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
|
Loading…
Add table
Add a link
Reference in a new issue