diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-04-13 15:58:27 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-04-13 15:58:27 (GMT) |
commit | 6688eb536ab7b88ade020b0e4e51e2ea74db82d1 (patch) | |
tree | 12a0956d535b8dca14a42321e89df81a3e9a8a41 /Python | |
parent | a4b2f9879cbd2f748bc1b729629c3a9ec6aa2e74 (diff) | |
download | cpython-6688eb536ab7b88ade020b0e4e51e2ea74db82d1.zip cpython-6688eb536ab7b88ade020b0e4e51e2ea74db82d1.tar.gz cpython-6688eb536ab7b88ade020b0e4e51e2ea74db82d1.tar.bz2 |
take linkage def outside of WITH_THREAD conditional (closes #14569)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pystate.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index ddb7d42..70ade98 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 */ |