summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-02-25 22:23:31 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-02-25 22:23:31 (GMT)
commitb6f6e95ed25f1aa9d8220b96bdf8445b695df7f2 (patch)
tree95954d0b5e496d30bef5c2c132e6298d855f6a8e
parent7d3f27c090038d7fba27f5da8e88329ff91b32d9 (diff)
downloadcpython-b6f6e95ed25f1aa9d8220b96bdf8445b695df7f2.zip
cpython-b6f6e95ed25f1aa9d8220b96bdf8445b695df7f2.tar.gz
cpython-b6f6e95ed25f1aa9d8220b96bdf8445b695df7f2.tar.bz2
Better fix for mpzmodule problem reported by Peter Funk: just use
mp_bits_per_limb with GMP 2.0
-rw-r--r--Modules/mpzmodule.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/Modules/mpzmodule.c b/Modules/mpzmodule.c
index 2653a95..e701d85 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 {