mirror of
https://github.com/python/cpython.git
synced 2026-01-04 22:42:14 +00:00
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.
This commit is contained in:
parent
4aa24f9979
commit
e7ef74dbf8
1 changed files with 5 additions and 0 deletions
|
|
@ -92,7 +92,12 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
*/
|
||||
|
||||
#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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue