diff Python/pystate.c @ 76285:5cc359804d61 3.2

take linkage def outside of WITH_THREAD conditional (closes #14569)
author Benjamin Peterson <benjamin@python.org>
date Fri, 13 Apr 2012 11:58:27 -0400
parents ba90839c4993
children 49f52d14b65c 4d1349013dd4
line wrap: on
line diff
--- a/Python/pystate.c	Fri Apr 13 02:27:37 2012 +0200
+++ b/Python/pystate.c	Fri Apr 13 11:58:27 2012 -0400
@@ -22,6 +22,9 @@
 #endif
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #ifdef WITH_THREAD
 #include "pythread.h"
@@ -30,10 +33,6 @@
 #define HEAD_LOCK() PyThread_acquire_lock(head_mutex, WAIT_LOCK)
 #define HEAD_UNLOCK() PyThread_release_lock(head_mutex)
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /* The single PyInterpreterState used by this process'
    GILState implementation
 */