Blob Blame History Raw
diff -up Macaulay2-1.4-r12617/Macaulay2/d/pari-c.c.orig Macaulay2-1.4-r12617/Macaulay2/d/pari-c.c
--- Macaulay2-1.4-r12617/Macaulay2/d/pari-c.c.orig	2012-07-01 14:35:09.929496630 -0400
+++ Macaulay2-1.4-r12617/Macaulay2/d/pari-c.c	2012-07-01 14:37:13.671501277 -0400
@@ -153,8 +153,14 @@ bool pari_ispseudoprime(mpz_t x, long fl
 
 */
 
+#if PARI_VERSION_CODE >= 132099
+# define outbeaut(x) output(x)
+#endif
 #define pari_examine(x) do { fputs(" " #x ": ", stdout); voir(x,-1); } while (0)
 #define pari_display(x) do { fputs(" " #x ": ", stdout); outbeaut(x); } while (0)
+#ifndef max
+# define max(a, b) ((a) >= (b) ? (a) : (b))
+#endif
 #define abs(x) ((x)<0?-(x):(x))
 
 static void gmp_examine0(mpz_t z) {