Skip to content

Commit

Permalink
Fix build when linbox is build with fplll support
Browse files Browse the repository at this point in the history
Undefine flint macros that conflict with fplll variables and break build when both are included
  • Loading branch information
antonio-rojas committed Jan 15, 2024
1 parent 439065e commit 0001320
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sage/libs/flint/flint_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,10 @@

#pragma pop_macro("ulong")

/* CPU_SIZE_1 and SIZE_RED_FAILURE_THRESH are defined as macros in flint/fmpz_lll.h
* and as variables in fplll/defs.h, which breaks build if linbox is compiled with fplll */

#undef CPU_SIZE_1
#undef SIZE_RED_FAILURE_THRESH

#endif

0 comments on commit 0001320

Please sign in to comment.