Skip to content

Commit d79e87b

Browse files
author
Release Manager
committed
gh-37064: Fix build when linbox is build with fplll support Undefine flint macros that conflict with fplll variables and break build when both are included See #36449 (comment) URL: #37064 Reported by: Antonio Rojas Reviewer(s): Tobias Diez, Vincent Delecroix
2 parents ba225a8 + 0001320 commit d79e87b

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)