Skip to content

Commit

Permalink
Restore compilation wit flintlib 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria committed Feb 5, 2025
1 parent a606af0 commit d8d87fd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/sage/libs/flint/flint_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
#pragma push_macro("I")
#define I Iv

/* flint 3.2 will rename flint_rand_s to flint_rand_struct
* the following line can be removed when flint 3.1 is gone */
#define flint_rand_s flint_rand_struct

#include <flint/flint.h>

/* If flint was already previously included via another header (e.g.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Import this module::

sage: import sage.libs.flint.flint_sage

We verify that :trac:`6919` is correctly fixed::
We verify that :issue:`6919` is correctly fixed::

sage: R.<x> = PolynomialRing(ZZ)
sage: A = 2^(2^17+2^15)
Expand Down
4 changes: 4 additions & 0 deletions src/sage_setup/autogen/flint/templates/flint_wrap.h.template
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
#pragma push_macro("I")
#define I Iv

/* flint 3.2 will rename flint_rand_s to flint_rand_struct
* the following line can be removed when flint 3.1 is gone */
#define flint_rand_s flint_rand_struct

#include <flint/flint.h>

/* If flint was already previously included via another header (e.g.
Expand Down
4 changes: 2 additions & 2 deletions src/sage_setup/autogen/flint/templates/types.pxd.template
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ cdef extern from "flint_wrap.h":


# flint/flint.h
ctypedef struct flint_rand_s:
ctypedef struct flint_rand_struct:
pass
ctypedef flint_rand_s flint_rand_t[1]
ctypedef flint_rand_struct flint_rand_t[1]

cdef long FLINT_BITS
cdef long FLINT_D_BITS
Expand Down

0 comments on commit d8d87fd

Please sign in to comment.