Commits

Guido van Rossum  committed f9f0262

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.)

  • Participants
  • Parent commits 0aa62cb
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Modules/mpzmodule.c

 #include "gmp.h"
 #include "gmp-impl.h"
 
-#if __GNU_MP__ == 2
+#if __GNU_MP__ + 0 == 2
 #define GMP2
 #else
 #define MPZ_GET_STR_BUG