Skip to content
Prev Previous commit
Next Next commit
Mark _wmi module
  • Loading branch information
swtaarrs committed May 3, 2024
commit 637c3e50750f65c12a41f9946a5ce64c7328af11
12 changes: 9 additions & 3 deletions PC/_wmimodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,18 @@ static PyMethodDef wmi_functions[] = {
{ NULL, NULL, 0, NULL }
};

static PyModuleDef_Slot wmi_slots[] = {
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
{0, NULL},
};

static PyModuleDef wmi_def = {
PyModuleDef_HEAD_INIT,
"_wmi",
NULL, // doc
0, // m_size
wmi_functions
NULL, // doc
0, // m_size
wmi_functions, // m_methods
wmi_slots, // m_slots
};

extern "C" {
Expand Down