summaryrefslogtreecommitdiffstats
path: root/Modules/mpzmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-17 19:08:33 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-17 19:08:33 (GMT)
commit57e846f80384178da28eb166df7167ede4a0773c (patch)
tree5d1a947f062819c92c268390a636ad66e9f916b8 /Modules/mpzmodule.c
parent5060b3be9bce4692ec11f4ed38753523ae4c8142 (diff)
downloadcpython-57e846f80384178da28eb166df7167ede4a0773c.zip
cpython-57e846f80384178da28eb166df7167ede4a0773c.tar.gz
cpython-57e846f80384178da28eb166df7167ede4a0773c.tar.bz2
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.)
Diffstat (limited to 'Modules/mpzmodule.c')
-rw-r--r--Modules/mpzmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mpzmodule.c b/Modules/mpzmodule.c
index a2bcfed..bfa8ff7 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