[Python-checkins] cpython (2.7): take linkage def outside of WITH_THREAD conditional (closes #14569)

benjamin.peterson python-checkins at python.org
Fri Apr 13 18:00:54 CEST 2012


http://hg.python.org/cpython/rev/508ae5d27c2c
changeset: 76287:508ae5d27c2c
branch: 2.7
parent: 76279:dd15e1cddefb
user: Benjamin Peterson <benjamin at python.org>
date: Fri Apr 13 11:58:27 2012 -0400
summary:
 take linkage def outside of WITH_THREAD conditional (closes #14569)
files:
 Python/pystate.c | 7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/Python/pystate.c b/Python/pystate.c
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -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
 */
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /