From: Benjamin Peterson Date: Fri, 13 Apr 2012 15:58:27 +0000 (-0400) Subject: take linkage def outside of WITH_THREAD conditional (closes #14569) X-Git-Tag: v3.3.0a3~240^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43162b8a02f278c74feb8bba7f20d93445198b60;p=thirdparty%2FPython%2Fcpython.git take linkage def outside of WITH_THREAD conditional (closes #14569) --- diff --git a/Python/pystate.c b/Python/pystate.c index 3b4c6a2e65f8..9fc4c1262daf 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -22,6 +22,9 @@ the expense of doing their own locking). #endif #endif +#ifdef __cplusplus +extern "C" { +#endif #ifdef WITH_THREAD #include "pythread.h" @@ -30,10 +33,6 @@ static PyThread_type_lock head_mutex = NULL; /* Protects interp->tstate_head */ #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 */