unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 98ff5e95b406812d8fbba033902d896ccf566827 1148 bytes (raw)
name: gnu/packages/patches/arb-flint-2.6.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
 
From d3d9983231e0f034e86a1e75761627eb8213b704 Mon Sep 17 00:00:00 2001
From: fredrik <fredrik.johansson@gmail.com>
Date: Wed, 29 Apr 2020 13:41:36 +0200
Subject: [PATCH] handle flint incompatibilities

---
 fmpr.h        | 4 ++++
 fmpz_extras.h | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/fmpr.h b/fmpr.h
index 2204d72e..c6a8c342 100644
--- a/fmpr.h
+++ b/fmpr.h
@@ -22,7 +22,11 @@
 #include "flint/flint.h"
 #include "flint/fmpz.h"
 #include "flint/fmpq.h"
+#if __FLINT_RELEASE < 20600
 #include "flint/config.h"
+#else
+#include "flint/flint-config.h"
+#endif
 #include "fmpz_extras.h"
 
 #ifndef flint_abort
diff --git a/fmpz_extras.h b/fmpz_extras.h
index 4fd0538f..486e28c8 100644
--- a/fmpz_extras.h
+++ b/fmpz_extras.h
@@ -43,6 +43,8 @@ fmpz_add_inline(fmpz_t z, const fmpz_t x, const fmpz_t y)
         fmpz_add(z, x, y);
 }
 
+#if __FLINT_RELEASE < 20600
+
 static __inline__ void
 fmpz_add_si(fmpz_t z, const fmpz_t x, slong y)
 {
@@ -61,6 +63,8 @@ fmpz_sub_si(fmpz_t z, const fmpz_t x, slong y)
         fmpz_add_ui(z, x, -y);
 }
 
+#endif
+
 static __inline__ void
 fmpz_add_si_inline(fmpz_t z, const fmpz_t x, slong y)
 {

debug log:

solving 98ff5e95b4 ...
found 98ff5e95b4 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).