summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-21 20:21:19 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-21 20:21:19 (GMT)
commita8b47fe5c67f265e955c19df9992c12ad6395f5e (patch)
tree29fe97ddc980a67aba4c2399dda01dfa865c9260 /Include
parent6058eb49ee34171fbe2843f74360cddde0441bdc (diff)
downloadcpython-a8b47fe5c67f265e955c19df9992c12ad6395f5e.zip
cpython-a8b47fe5c67f265e955c19df9992c12ad6395f5e.tar.gz
cpython-a8b47fe5c67f265e955c19df9992c12ad6395f5e.tar.bz2
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.
Diffstat (limited to 'Include')
-rw-r--r--Include/pystate.h2
1 files changed, 1 insertions, 1 deletions
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()