From a8b47fe5c67f265e955c19df9992c12ad6395f5e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 21 Dec 1998 20:21:19 +0000 Subject: 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. --- Include/pystate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/pystate.h b/Include/pystate.h index f6a26fd..e578024 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -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() -- cgit v0.12