[Python-checkins] CVS: python/dist/src/Modules mpzmodule.c,2.21,2.22

Andrew M. Kuchling akuchlin@CNRI.Reston.VA.US
Fri, 25 Feb 2000 17:23:34 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Modules
In directory amarok:/home/akuchlin/src/Python-1.5/Modules

Modified Files:
	mpzmodule.c 
Log Message:
Better fix for mpzmodule problem reported by Peter Funk: just use
    mp_bits_per_limb with GMP 2.0


Index: mpzmodule.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/mpzmodule.c,v
retrieving revision 2.21
retrieving revision 2.22
diff -C2 -r2.21 -r2.22
*** mpzmodule.c	2000/02/24 15:26:30	2.21
--- mpzmodule.c	2000/02/25 22:23:31	2.22
***************
*** 94,107 ****
  #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
  #else
  #define MPZ_GET_STR_BUG
  #endif
  
--- 94,103 ----
  #include "gmp.h"
  
  #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