From: Guido van Rossum Date: Sun, 17 Aug 1997 19:08:33 +0000 (+0000) Subject: Use a trick to make the test for GMP v2 to work when GMP v1 defines X-Git-Tag: v1.5a4~387 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57e846f80384178da28eb166df7167ede4a0773c;p=thirdparty%2FPython%2Fcpython.git Use a trick to make the test for GMP v2 to work when GMP v1 defines __GNU_MP__ as empty: #if __GNU_MP__ + 0 == 2 (Untested.) --- diff --git a/Modules/mpzmodule.c b/Modules/mpzmodule.c index a2bcfed7b149..bfa8ff766934 100644 --- a/Modules/mpzmodule.c +++ b/Modules/mpzmodule.c @@ -94,7 +94,7 @@ PERFORMANCE OF THIS SOFTWARE. #include "gmp.h" #include "gmp-impl.h" -#if __GNU_MP__ == 2 +#if __GNU_MP__ + 0 == 2 #define GMP2 #else #define MPZ_GET_STR_BUG