projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4b2f98
)
take linkage def outside of WITH_THREAD conditional (closes #14569)
author
Benjamin Peterson
<benjamin@python.org>
Fri, 13 Apr 2012 15:58:27 +0000
(11:58 -0400)
committer
Benjamin Peterson
<benjamin@python.org>
Fri, 13 Apr 2012 15:58:27 +0000
(11:58 -0400)
Python/pystate.c
patch
|
blob
|
history
diff --git
a/Python/pystate.c
b/Python/pystate.c
index ddb7d42589879f2b1b27a5db056feb140540ae23..70ade98285dd9822f44fb7469e1da7bb285f50cb 100644
(file)
--- 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
*/