diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-06-17 10:29:00 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-06-17 10:29:00 (GMT) |
commit | d7292b5e9f7e0cd227032370bb6c46a39c252f38 (patch) | |
tree | 9a08846524a5bc9c575cb8e90de36e23f81a58b0 /Python | |
parent | 531396c764d12ca6ec02a4e199350fee1879499a (diff) | |
download | cpython-d7292b5e9f7e0cd227032370bb6c46a39c252f38.zip cpython-d7292b5e9f7e0cd227032370bb6c46a39c252f38.tar.gz cpython-d7292b5e9f7e0cd227032370bb6c46a39c252f38.tar.bz2 |
Issue #27336: Fix compilation on Windows
Replace "#if WITH_THREAD" with "#ifdef WITH_THREAD".
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pylifecycle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 12a5d4c..72a00e6 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -746,7 +746,7 @@ Py_NewInterpreter(void) if (!initialized) Py_FatalError("Py_NewInterpreter: call Py_Initialize first"); -#if WITH_THREAD +#ifdef WITH_THREAD /* Issue #10915, #15751: The GIL API doesn't work with multiple interpreters: disable PyGILState_Check(). */ _PyGILState_check_enabled = 0; @@ -1409,7 +1409,7 @@ exit: /* Clean up and exit */ #ifdef WITH_THREAD -#include "pythread.h" +# include "pythread.h" #endif static void (*pyexitfunc)(void) = NULL; |