From: Andrew M. Kuchling Date: Fri, 25 Feb 2000 22:23:31 +0000 (+0000) Subject: Better fix for mpzmodule problem reported by Peter Funk: just use X-Git-Tag: v1.6a1~348 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6f6e95ed25f1aa9d8220b96bdf8445b695df7f2;p=python Better fix for mpzmodule problem reported by Peter Funk: just use mp_bits_per_limb with GMP 2.0 --- diff --git a/Modules/mpzmodule.c b/Modules/mpzmodule.c index 2653a95b0e..e701d8548d 100644 --- a/Modules/mpzmodule.c +++ b/Modules/mpzmodule.c @@ -93,16 +93,12 @@ PERFORMANCE OF THIS SOFTWARE. #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 #define GMP2 +#define BITS_PER_MP_LIMB mp_bits_per_limb #else #define MPZ_GET_STR_BUG +#include "gmp-mparam.h" #endif typedef struct {