]> granicus.if.org Git - python/commitdiff
Peter Funk:
authorGuido van Rossum <guido@python.org>
Thu, 24 Feb 2000 15:26:30 +0000 (15:26 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 24 Feb 2000 15:26:30 +0000 (15:26 +0000)
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.

Modules/mpzmodule.c

index 7ae6937378a17a413e73d607d401d663b0d05edb..2653a95b0e57f1ab5e7fbb53e6a9f3e4117f86fe 100644 (file)
@@ -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