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:
Guido van Rossum 1998-12-21 20:21:19 +00:00
parent 6058eb49ee
commit a8b47fe5c6

View file

@ -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()