Skip to content

Commit 6247975

Browse files
committed
src/sage/libs/flint/flint_wrap.h: Work around 'I' symbol clash
1 parent db90cba commit 6247975

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sage/libs/flint/flint_wrap.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
#pragma push_macro("ulong")
2727
#undef ulong
2828

29+
/* Reserved in C99, needed for FLINT without https://github.com/flintlib/flint/pull/2027 */
30+
#pragma push_macro("I")
31+
#define I Iv
32+
2933
#include <flint/flint.h>
3034

3135
/* If flint was already previously included via another header (e.g.
@@ -169,6 +173,7 @@
169173
#undef mp_bitcnt_t
170174

171175
#pragma pop_macro("ulong")
176+
#pragma pop_macro("I")
172177

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy