Skip to content

Commit 5b6a279

Browse files
committed
Add version guards
1 parent 72386ad commit 5b6a279

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tornado/speedups.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ static PyMethodDef methods[] = {
5757
};
5858

5959
static PyModuleDef_Slot slots[] = {
60+
#if PY_VERSION_HEX >= 0x030c0000
6061
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
62+
#endif
63+
#if PY_VERSION_HEX >= 0x030d0000
6164
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
65+
#endif
6266
{0, NULL}
6367
};
6468

0 commit comments

Comments
 (0)