]> granicus.if.org Git - python/commitdiff
Use a trick to make the test for GMP v2 to work when GMP v1 defines
authorGuido van Rossum <guido@python.org>
Sun, 17 Aug 1997 19:08:33 +0000 (19:08 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 17 Aug 1997 19:08:33 +0000 (19:08 +0000)
__GNU_MP__ as empty: #if __GNU_MP__ + 0 == 2
(Untested.)

Modules/mpzmodule.c

index a2bcfed7b14925a86c2477016328e4675d6f1473..bfa8ff766934495482e3bf50a87d0dba5d22ca2c 100644 (file)
@@ -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