Skip to content

Commit c7a832b

Browse files
Fix Windows.
1 parent b15fa9d commit c7a832b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/_threadmodule.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,6 @@ PyDoc_STRVAR(excepthook_doc,
18191819
\n\
18201820
Handle uncaught Thread.run() exception.");
18211821

1822-
#ifdef HAVE_FORK
18231822
static PyObject *
18241823
thread__wait_for_threads_fini(PyObject *module, PyObject *Py_UNUSED(ignored))
18251824
{
@@ -1828,6 +1827,7 @@ thread__wait_for_threads_fini(PyObject *module, PyObject *Py_UNUSED(ignored))
18281827
Py_RETURN_NONE;
18291828
}
18301829

1830+
#ifdef HAVE_FORK
18311831
static PyObject *
18321832
thread__after_fork(PyObject *module, PyObject *Py_UNUSED(ignored))
18331833
{
@@ -1870,10 +1870,10 @@ static PyMethodDef thread_methods[] = {
18701870
METH_NOARGS, _set_sentinel_doc},
18711871
{"_excepthook", thread_excepthook,
18721872
METH_O, excepthook_doc},
1873-
{"_wait_for_threads_fini", (PyCFunction)thread__wait_for_threads_fini,
1873+
{"_wait_for_threads_fini", thread__wait_for_threads_fini,
18741874
METH_NOARGS, NULL},
18751875
#ifdef HAVE_FORK
1876-
{"_after_fork", (PyCFunction)thread__after_fork,
1876+
{"_after_fork", thread__after_fork,
18771877
METH_NOARGS, NULL},
18781878
#endif
18791879
{NULL, NULL} /* sentinel */

0 commit comments

Comments
 (0)