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

Martin v. L?wis loewis@users.sourceforge.net
Mon, 01 Apr 2002 08:45:54 -0800


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

Modified Files:
      Tag: release21-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.


Index: mpzmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/mpzmodule.c,v
retrieving revision 2.36
retrieving revision 2.36.4.1
diff -C2 -d -r2.36 -r2.36.4.1
*** mpzmodule.c	12 Feb 2001 16:48:13 -0000	2.36
--- mpzmodule.c	1 Apr 2002 16:45:51 -0000	2.36.4.1
***************
*** 64,68 ****
  #include "gmp.h"
  
! #if __GNU_MP__ + 0 == 2
  #define GMP2
  #define BITS_PER_MP_LIMB mp_bits_per_limb
--- 64,68 ----
  #include "gmp.h"
  
! #if __GNU_MP__ + 0 >= 2
  #define GMP2
  #define BITS_PER_MP_LIMB mp_bits_per_limb