summaryrefslogtreecommitdiff
path: root/sci-mathematics/giac/files/giac-1.9.0.21-pari-2.15.patch
blob: c1df76ea70489d12085b65ec3b8dc3ad3bdfe208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/src/pari.cc
+++ b/src/pari.cc
@@ -39,6 +39,14 @@ using namespace std;
 #endif
 
 #ifdef HAVE_LIBPARI
+#if !defined ANYARG
+// Anyarg disappeared from PARI 2.15.0
+#ifdef __cplusplus
+#  define ANYARG ...
+#else
+#  define ANYARG
+#endif
+#endif
 
 #ifdef HAVE_PTHREAD_H
 #include <pthread.h>