Skip to content

Commit 0001320

Browse files
committed
Fix build when linbox is build with fplll support
Undefine flint macros that conflict with fplll variables and break build when both are included
1 parent 439065e commit 0001320

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sage/libs/flint/flint_wrap.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,10 @@
168168

169169
#pragma pop_macro("ulong")
170170

171+
/* CPU_SIZE_1 and SIZE_RED_FAILURE_THRESH are defined as macros in flint/fmpz_lll.h
172+
* and as variables in fplll/defs.h, which breaks build if linbox is compiled with fplll */
173+
174+
#undef CPU_SIZE_1
175+
#undef SIZE_RED_FAILURE_THRESH
176+
171177
#endif

0 commit comments

Comments
 (0)