Skip to content

Commit 33ec04b

Browse files
committed
Restore compilation wit flintlib 3.1
1 parent fcc40d1 commit 33ec04b

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/sage/libs/flint/flint_wrap.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
#pragma push_macro("I")
3131
#define I Iv
3232

33+
/* flint 3.2 will rename flint_rand_s to flint_rand_struct
34+
* the following line can be removed when flint 3.1 is gone */
35+
#define flint_rand_s flint_rand_struct
36+
3337
#include <flint/flint.h>
3438

3539
/* If flint was already previously included via another header (e.g.

src/sage_setup/autogen/flint/templates/flint_wrap.h.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
#pragma push_macro("I")
3131
#define I Iv
3232

33+
/* flint 3.2 will rename flint_rand_s to flint_rand_struct
34+
* the following line can be removed when flint 3.1 is gone */
35+
#define flint_rand_s flint_rand_struct
36+
3337
#include <flint/flint.h>
3438

3539
/* If flint was already previously included via another header (e.g.

src/sage_setup/autogen/flint/templates/types.pxd.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ cdef extern from "flint_wrap.h":
269269

270270

271271
# flint/flint.h
272-
ctypedef struct flint_rand_s:
272+
ctypedef struct flint_rand_struct:
273273
pass
274-
ctypedef flint_rand_s flint_rand_t[1]
274+
ctypedef flint_rand_struct flint_rand_t[1]
275275
ctypedef enum flint_err_t:
276276
# flint_autogen.py does not support parsing .. enum:: yet
277277
FLINT_ERROR

0 commit comments

Comments
 (0)