]> granicus.if.org Git - python/commitdiff
Issue #27336: Fix compilation on Windows
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 17 Jun 2016 10:29:00 +0000 (12:29 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 17 Jun 2016 10:29:00 +0000 (12:29 +0200)
Replace "#if WITH_THREAD" with "#ifdef WITH_THREAD".

Python/pylifecycle.c

index 12a5d4c8b7a5882cbfdac500c85b48b5cff2d834..72a00e671f1799620d598d15da0c423f853d2b87 100644 (file)
@@ -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;