From d1ff3b100fe105a47183c09cbd5583f4af116a01 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 20 Jun 2024 19:27:33 -0700 Subject: [PATCH] src/sage/libs/flint/flint_wrap.h: Work around 'I' symbol clash --- src/sage/libs/flint/flint_wrap.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sage/libs/flint/flint_wrap.h b/src/sage/libs/flint/flint_wrap.h index 1302973779e..2cd39eb1441 100644 --- a/src/sage/libs/flint/flint_wrap.h +++ b/src/sage/libs/flint/flint_wrap.h @@ -26,6 +26,10 @@ #pragma push_macro("ulong") #undef ulong +/* Reserved in C99, needed for FLINT without https://github.com/flintlib/flint/pull/2027 */ +#pragma push_macro("I") +#define I Iv + #include /* If flint was already previously included via another header (e.g. @@ -169,6 +173,7 @@ #undef mp_bitcnt_t #pragma pop_macro("ulong") +#pragma pop_macro("I") /* 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 */