take linkage def outside of WITH_THREAD conditional (closes #14569)

This commit is contained in:
Benjamin Peterson 2012-04-13 11:58:27 -04:00
parent a4b2f9879c
commit 6688eb536a
1 changed files with 3 additions and 4 deletions

View File

@ -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
*/