Skip to content

Commit 64fe35c

Browse files
committed
Issue #27336: Fix compilation on Windows
Replace "#if WITH_THREAD" with "#ifdef WITH_THREAD".
1 parent f23a9c1 commit 64fe35c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/pylifecycle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ Py_NewInterpreter(void)
746746
if (!initialized)
747747
Py_FatalError("Py_NewInterpreter: call Py_Initialize first");
748748

749-
#if WITH_THREAD
749+
#ifdef WITH_THREAD
750750
/* Issue #10915, #15751: The GIL API doesn't work with multiple
751751
interpreters: disable PyGILState_Check(). */
752752
_PyGILState_check_enabled = 0;
@@ -1409,7 +1409,7 @@ Py_FatalError(const char *msg)
14091409
/* Clean up and exit */
14101410

14111411
#ifdef WITH_THREAD
1412-
#include "pythread.h"
1412+
# include "pythread.h"
14131413
#endif
14141414

14151415
static void (*pyexitfunc)(void) = NULL;

0 commit comments

Comments
 (0)