mirror of
https://github.com/python/cpython.git
synced 2025-11-13 23:46:24 +00:00
Better fix for mpzmodule problem reported by Peter Funk: just use
mp_bits_per_limb with GMP 2.0
This commit is contained in:
parent
7d3f27c090
commit
b6f6e95ed2
1 changed files with 2 additions and 6 deletions
|
|
@ -93,16 +93,12 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
#include "gmp.h"
|
#include "gmp.h"
|
||||||
|
|
||||||
#if defined __GLIBC__ && __GLIBC__ >= 2 /*aid building on Linux distributions*/
|
|
||||||
#define BITS_PER_MP_LIMB mp_bits_per_limb
|
|
||||||
#else
|
|
||||||
#include "gmp-mparam.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if __GNU_MP__ + 0 == 2
|
#if __GNU_MP__ + 0 == 2
|
||||||
#define GMP2
|
#define GMP2
|
||||||
|
#define BITS_PER_MP_LIMB mp_bits_per_limb
|
||||||
#else
|
#else
|
||||||
#define MPZ_GET_STR_BUG
|
#define MPZ_GET_STR_BUG
|
||||||
|
#include "gmp-mparam.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue