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

Guido van Rossum guido@cnri.reston.va.us
Thu, 24 Feb 2000 10:26:33 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Modules
In directory eric:/projects/python/develop/guido/src/Modules

Modified Files:
	mpzmodule.c 
Log Message:
Peter Funk:

This patch allows building the Python 'mpzmodule' under SuSE Linux
without having to install the source package of the GMP-libary.
The gmp-mparam.h seems to be an internal header file.  The patch 
shouldn't hurt any other platforms.


Index: mpzmodule.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/mpzmodule.c,v
retrieving revision 2.20
retrieving revision 2.21
diff -C2 -r2.20 -r2.21
*** mpzmodule.c	1998/12/14 19:36:14	2.20
--- mpzmodule.c	2000/02/24 15:26:30	2.21
***************
*** 93,97 ****
--- 93,102 ----
  
  #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