mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
I can't seem to do anything right :-)
As Chris H. points out, I should have added 'extern' to the declaration of _PyThreadState_Current. Here it is.
This commit is contained in:
parent
6058eb49ee
commit
a8b47fe5c6
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ DL_IMPORT(PyObject *) PyThreadState_GetDict Py_PROTO((void));
|
|||
|
||||
/* Variable and macro for in-line access to current thread state */
|
||||
|
||||
DL_IMPORT(PyThreadState *) _PyThreadState_Current;
|
||||
extern DL_IMPORT(PyThreadState *) _PyThreadState_Current;
|
||||
|
||||
#ifdef Py_DEBUG
|
||||
#define PyThreadState_GET() PyThreadState_Get()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue