STINNER Victor <vstin...@python.org> added the comment:
> Include/object.h:109:3: warning: redefinition of typedef 'PyObject' is a C11 > feature [-Wtypedef-redefinition] Oh. I already met this error :-( That's why I proposed in GH-31201 to move all forward declarations at the top of Python.h to solve such issue. I wrote GH-31527 to do exactly that: add a new pytypedefs.h header files to move all forward declarations at the top of Python.h. I didn't move *all* "typedef struct xxx yyy;" there: only the ones which cause interdependencies issues. ---------- resolution: fixed -> status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45459> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com