From 98c38719ef4e22d608898c8754e7ff8d3bad0efc Mon Sep 17 00:00:00 2001 From: Marc Mezzarobba Date: Tue, 30 Jan 2024 13:52:54 +0100 Subject: [PATCH] move fix from #37064 to the flint interface generator --- .../autogen/flint/templates/flint_wrap.h.template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sage_setup/autogen/flint/templates/flint_wrap.h.template b/src/sage_setup/autogen/flint/templates/flint_wrap.h.template index 27237dcb2a5..58aef51a29e 100644 --- a/src/sage_setup/autogen/flint/templates/flint_wrap.h.template +++ b/src/sage_setup/autogen/flint/templates/flint_wrap.h.template @@ -40,4 +40,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