diff --git a/src/runtime/native/PyGILState.cs b/src/runtime/native/PyGILState.cs index 35fe6c983..2e7f61029 100644 --- a/src/runtime/native/PyGILState.cs +++ b/src/runtime/native/PyGILState.cs @@ -1,11 +1,8 @@ -using System; -using System.Runtime.InteropServices; - namespace Python.Runtime.Native; /// PyGILState_STATE -[StructLayout(LayoutKind.Sequential)] -struct PyGILState +enum PyGILState { - IntPtr handle; + PyGILState_LOCKED, + PyGILState_UNLOCKED }