Skip to content

Commit

Permalink
Fix Python 3.12 build (Closes 1558) (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
externl authored Oct 23, 2023
1 parent f2ec1c6 commit 4fa13cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/modules/IcePy/Types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4624,7 +4624,12 @@ PyTypeObject UnsetType =
PyObject UnsetValue =
{
_PyObject_EXTRA_INIT
1, &UnsetType
#if PY_VERSION_HEX >= 0x030c0000
{1},
#else
1,
#endif
&UnsetType
};

PyObject* Unset = &UnsetValue;
Expand Down

0 comments on commit 4fa13cd

Please sign in to comment.