summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-03-08 21:46:15 (GMT)
committerCollin Winter <collinw@gmail.com>2007-03-08 21:46:15 (GMT)
commitaf334387d12e12677460b4f558ed0a670fdfcebf (patch)
treeafd0ade34810b6b4ee2845ad0bbb98382980a4d6
parent7afaa88ebc7c4b1eec87c50989b599e2147e1247 (diff)
downloadcpython-af334387d12e12677460b4f558ed0a670fdfcebf.zip
cpython-af334387d12e12677460b4f558ed0a670fdfcebf.tar.gz
cpython-af334387d12e12677460b4f558ed0a670fdfcebf.tar.bz2
Add a missing forward declaration for PyFileIO_Type. The _fileio module now compiles with --with-pydebug.
-rw-r--r--Modules/_fileio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_fileio.c b/Modules/_fileio.c
index 9ab27c1..adbf01b 100644
--- a/Modules/_fileio.c
+++ b/Modules/_fileio.c
@@ -44,6 +44,8 @@ typedef struct {
PyObject *weakreflist;
} PyFileIOObject;
+PyTypeObject PyFileIO_Type;
+
#define PyFileIO_Check(op) (PyObject_TypeCheck((op), &PyFileIO_Type))
/* Note: if this function is changed so that it can return a true value,