https://github.com/python/cpython/pull/160562 --- Python-3.14.10/Include/object.h.orig +++ Python-3.14.10/Include/object.h @@ -109,7 +109,8 @@ #ifndef Py_GIL_DISABLED struct _object { #if (defined(__GNUC__) || defined(__clang__)) \ - && !(defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L) + && (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L \ + || defined(__cplusplus)) // On C99 and older, anonymous union is a GCC and clang extension __extension__ #endif