Skip to content

Commit f6de9c3

Browse files
committed
fix: _PyDictViewObject typedef redefinition with different types on Python < 3.13
1 parent 9826939 commit f6de9c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/pyshim.hh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131
*
3232
* @see https://github.com/python/cpython/blob/v3.13.0rc1/Include/internal/pycore_dict.h#L64-L72
3333
*/
34+
#if PY_VERSION_HEX >= 0x030d0000 // Python version is greater than 3.13
3435
typedef struct {
3536
PyObject_HEAD
3637
PyDictObject *dv_dict;
3738
} _PyDictViewObject;
39+
#endif
3840

3941
#endif // #ifndef PythonMonkey_py_version_shim_

0 commit comments

Comments
 (0)