]> granicus.if.org Git - python/commitdiff
Better fix for mpzmodule problem reported by Peter Funk: just use
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 25 Feb 2000 22:23:31 +0000 (22:23 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 25 Feb 2000 22:23:31 +0000 (22:23 +0000)
    mp_bits_per_limb with GMP 2.0

Modules/mpzmodule.c

index 2653a95b0e57f1ab5e7fbb53e6a9f3e4117f86fe..e701d8548db1e5232a813ce694c0a3234f97e28f 100644 (file)
@@ -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 {