From: Collin Winter Date: Thu, 8 Mar 2007 21:46:15 +0000 (+0000) Subject: Add a missing forward declaration for PyFileIO_Type. The _fileio module now compiles... X-Git-Tag: v3.0a1~1125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af334387d12e12677460b4f558ed0a670fdfcebf;p=python Add a missing forward declaration for PyFileIO_Type. The _fileio module now compiles with --with-pydebug. --- diff --git a/Modules/_fileio.c b/Modules/_fileio.c index 9ab27c12b6..adbf01b60c 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,