Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7ef74d

Browse files
committed
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.
1 parent 4aa24f9 commit e7ef74d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Modules/mpzmodule.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ PERFORMANCE OF THIS SOFTWARE.
9292
*/
9393

9494
#include "gmp.h"
95+
96+
#if defined __GLIBC__ && __GLIBC__ >= 2 /*aid building on Linux distributions*/
97+
#define BITS_PER_MP_LIMB mp_bits_per_limb
98+
#else
9599
#include "gmp-mparam.h"
100+
#endif
96101

97102
#if __GNU_MP__ + 0 == 2
98103
#define GMP2

0 commit comments

Comments
 (0)