From: Guido van Rossum Date: Mon, 21 Dec 1998 20:21:19 +0000 (+0000) Subject: I can't seem to do anything right :-) X-Git-Tag: v1.5.2b1~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8b47fe5c67f265e955c19df9992c12ad6395f5e;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Include/pystate.h b/Include/pystate.h index f6a26fdb1beb..e578024c3375 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()