[Python-checkins] cpython: Issue #27336: Fix compilation on Windows

victor.stinner python-checkins at python.org
Fri Jun 17 06:29:47 EDT 2016


https://hg.python.org/cpython/rev/cbe977fd306f
changeset:   102072:cbe977fd306f
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Fri Jun 17 12:29:00 2016 +0200
summary:
  Issue #27336: Fix compilation on Windows

Replace "#if WITH_THREAD" with "#ifdef WITH_THREAD".

files:
  Python/pylifecycle.c |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -746,7 +746,7 @@
     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 @@
 /* Clean up and exit */
 
 #ifdef WITH_THREAD
-#include "pythread.h"
+#  include "pythread.h"
 #endif
 
 static void (*pyexitfunc)(void) = NULL;

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list