We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaae799 commit 9660827Copy full SHA for 9660827
src/sage/libs/gap/gap_includes.pxd
@@ -144,3 +144,18 @@ cdef extern from "gap/stringobj.h" nogil:
144
bint IS_STRING(Obj obj)
145
bint IsStringConv(Obj obj)
146
Obj NEW_STRING(Int)
147
+
148
149
+cdef extern from "<structmember.h>" nogil:
150
+ """
151
+ /* Hack: Cython 3.0 automatically includes <structmember.h>, which
152
+ * defines several macros that collides with enum definitions in
153
+ * gap/objects.h. We need to include the header explicitly and
154
+ * undefine these macros.
155
+ */
156
+ #undef T_INT
157
+ #undef T_STRING
158
+ #undef T_CHAR
159
+ #undef T_BOOL
160
161
+ pass
0 commit comments