We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 504a83f commit 43162b8Copy full SHA for 43162b8
1 file changed
Python/pystate.c
@@ -22,6 +22,9 @@ the expense of doing their own locking).
22
#endif
23
24
25
+#ifdef __cplusplus
26
+extern "C" {
27
+#endif
28
29
#ifdef WITH_THREAD
30
#include "pythread.h"
@@ -30,10 +33,6 @@ static PyThread_type_lock head_mutex = NULL; /* Protects interp->tstate_head */
33
#define HEAD_LOCK() PyThread_acquire_lock(head_mutex, WAIT_LOCK)
31
34
#define HEAD_UNLOCK() PyThread_release_lock(head_mutex)
32
35
-#ifdef __cplusplus
-extern "C" {
-#endif
36
-
37
/* The single PyInterpreterState used by this process'
38
GILState implementation
39
*/
0 commit comments