File tree Expand file tree Collapse file tree 7 files changed +14
-14
lines changed
Expand file tree Collapse file tree 7 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -1095,10 +1095,10 @@ _psutil_aix_exec(PyObject *mod) {
10951095
10961096static struct PyModuleDef_Slot _psutil_aix_slots [] = {
10971097 {Py_mod_exec , _psutil_aix_exec },
1098- #if PY_VERSION_HEX >= 0x030c00f0 // Python 3.12+
1098+ #ifdef Py_mod_multiple_interpreters // Python 3.12+
10991099 {Py_mod_multiple_interpreters , Py_MOD_PER_INTERPRETER_GIL_SUPPORTED },
11001100#endif
1101- #if PY_VERSION_HEX >= 0x030d00f0 // Python 3.13+
1101+ #ifdef Py_mod_gil // Python 3.13+
11021102 // signal that this module supports running without an active GIL
11031103 {Py_mod_gil , Py_MOD_GIL_NOT_USED },
11041104#endif
Original file line number Diff line number Diff line change @@ -203,10 +203,10 @@ _psutil_bsd_exec(PyObject *mod) {
203203
204204static struct PyModuleDef_Slot _psutil_bsd_slots [] = {
205205 {Py_mod_exec , _psutil_bsd_exec },
206- #if PY_VERSION_HEX >= 0x030c00f0 // Python 3.12+
206+ #ifdef Py_mod_multiple_interpreters // Python 3.12+
207207 {Py_mod_multiple_interpreters , Py_MOD_PER_INTERPRETER_GIL_SUPPORTED },
208208#endif
209- #if PY_VERSION_HEX >= 0x030d00f0 // Python 3.13+
209+ #ifdef Py_mod_gil // Python 3.13+
210210 // signal that this module supports running without an active GIL
211211 {Py_mod_gil , Py_MOD_GIL_NOT_USED },
212212#endif
Original file line number Diff line number Diff line change @@ -67,10 +67,10 @@ _psutil_linux_exec(PyObject *mod) {
6767
6868static struct PyModuleDef_Slot _psutil_linux_slots [] = {
6969 {Py_mod_exec , _psutil_linux_exec },
70- #if PY_VERSION_HEX >= 0x030c00f0 // Python 3.12+
70+ #ifdef Py_mod_multiple_interpreters // Python 3.12+
7171 {Py_mod_multiple_interpreters , Py_MOD_PER_INTERPRETER_GIL_SUPPORTED },
7272#endif
73- #if PY_VERSION_HEX >= 0x030d00f0 // Python 3.13+
73+ #ifdef Py_mod_gil // Python 3.13+
7474 // signal that this module supports running without an active GIL
7575 {Py_mod_gil , Py_MOD_GIL_NOT_USED },
7676#endif
Original file line number Diff line number Diff line change @@ -113,10 +113,10 @@ _psutil_osx_exec(PyObject *mod) {
113113
114114static struct PyModuleDef_Slot _psutil_osx_slots [] = {
115115 {Py_mod_exec , _psutil_osx_exec },
116- #if PY_VERSION_HEX >= 0x030c00f0 // Python 3.12+
116+ #ifdef Py_mod_multiple_interpreters // Python 3.12+
117117 {Py_mod_multiple_interpreters , Py_MOD_PER_INTERPRETER_GIL_SUPPORTED },
118118#endif
119- #if PY_VERSION_HEX >= 0x030d00f0 // Python 3.13+
119+ #ifdef Py_mod_gil // Python 3.13+
120120 // signal that this module supports running without an active GIL
121121 {Py_mod_gil , Py_MOD_GIL_NOT_USED },
122122#endif
Original file line number Diff line number Diff line change @@ -1010,10 +1010,10 @@ _psutil_posix_exec(PyObject *mod) {
10101010
10111011static struct PyModuleDef_Slot _psutil_posix_slots [] = {
10121012 {Py_mod_exec , _psutil_posix_exec },
1013- #if PY_VERSION_HEX >= 0x030c00f0 // Python 3.12+
1013+ #ifdef Py_mod_multiple_interpreters // Python 3.12+
10141014 {Py_mod_multiple_interpreters , Py_MOD_PER_INTERPRETER_GIL_SUPPORTED },
10151015#endif
1016- #if PY_VERSION_HEX >= 0x030d00f0 // Python 3.13+
1016+ #ifdef Py_mod_gil // Python 3.13+
10171017 // signal that this module supports running without an active GIL
10181018 {Py_mod_gil , Py_MOD_GIL_NOT_USED },
10191019#endif
Original file line number Diff line number Diff line change @@ -141,10 +141,10 @@ _psutil_sunos_exec(PyObject *mod) {
141141
142142static struct PyModuleDef_Slot _psutil_sunos_slots [] = {
143143 {Py_mod_exec , _psutil_sunos_exec },
144- #if PY_VERSION_HEX >= 0x030c00f0 // Python 3.12+
144+ #ifdef Py_mod_multiple_interpreters // Python 3.12+
145145 {Py_mod_multiple_interpreters , Py_MOD_PER_INTERPRETER_GIL_SUPPORTED },
146146#endif
147- #if PY_VERSION_HEX >= 0x030d00f0 // Python 3.13+
147+ #ifdef Py_mod_gil // Python 3.13+
148148 // signal that this module supports running without an active GIL
149149 {Py_mod_gil , Py_MOD_GIL_NOT_USED },
150150#endif
Original file line number Diff line number Diff line change @@ -248,10 +248,10 @@ _psutil_windows_exec(PyObject *mod) {
248248
249249static struct PyModuleDef_Slot _psutil_windows_slots [] = {
250250 {Py_mod_exec , _psutil_windows_exec },
251- #if PY_VERSION_HEX >= 0x030c00f0 // Python 3.12+
251+ #ifdef Py_mod_multiple_interpreters // Python 3.12+
252252 {Py_mod_multiple_interpreters , Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED },
253253#endif
254- #if PY_VERSION_HEX >= 0x030d00f0 // Python 3.13+
254+ #ifdef Py_mod_gil // Python 3.13+
255255 // signal that this module supports running without an active GIL
256256 {Py_mod_gil , Py_MOD_GIL_NOT_USED },
257257#endif
You can’t perform that action at this time.
0 commit comments