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

Michael Hudson mwh@users.sourceforge.net
Tue, 05 Mar 2002 06:20:34 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv8376

Modified Files:
      Tag: release22-maint
	mpzmodule.c 
Log Message:
backport gvanrossum's checkin of
    revision 2.40 of mpzmodule.c

SF patch 517245 by Marc Recht.

Support GMP version >= 2.

Bugfix candidate.


Index: mpzmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/mpzmodule.c,v
retrieving revision 2.38
retrieving revision 2.38.6.1
diff -C2 -d -r2.38 -r2.38.6.1
*** mpzmodule.c	8 Dec 2001 18:02:57 -0000	2.38
--- mpzmodule.c	5 Mar 2002 14:20:32 -0000	2.38.6.1
***************
*** 63,67 ****
  #include "gmp.h"
  
! #if __GNU_MP__ + 0 == 2
  #define GMP2
  #define BITS_PER_MP_LIMB mp_bits_per_limb
--- 63,67 ----
  #include "gmp.h"
  
! #if __GNU_MP__ + 0 >= 2
  #define GMP2
  #define BITS_PER_MP_LIMB mp_bits_per_limb