]> granicus.if.org Git - python/commitdiff
I can't seem to do anything right :-)
authorGuido van Rossum <guido@python.org>
Mon, 21 Dec 1998 20:21:19 +0000 (20:21 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 21 Dec 1998 20:21:19 +0000 (20:21 +0000)
As Chris H. points out, I should have added 'extern' to the
declaration of _PyThreadState_Current.  Here it is.

Include/pystate.h

index f6a26fdb1beb1e8ced5c3956f1ee4e05b69d99cb..e578024c3375e20f7b4140f3502f89cb90ff572b 100644 (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()