changeset: 76287:508ae5d27c2c branch: 2.7 parent: 76279:dd15e1cddefb user: Benjamin Peterson date: Fri Apr 13 11:58:27 2012 -0400 files: Python/pystate.c description: take linkage def outside of WITH_THREAD conditional (closes #14569) diff -r dd15e1cddefb -r 508ae5d27c2c Python/pystate.c --- a/Python/pystate.c Fri Apr 13 02:32:51 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 */

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