_Py_RefTotal should only be declared here when Py_TRACE_REFS are #define'd

This commit is contained in:
Skip Montanaro 2000-07-08 12:04:57 +00:00
parent 2c4a3dceaf
commit 4ca150bdb2
1 changed files with 2 additions and 0 deletions

View File

@ -523,7 +523,9 @@ instance_dealloc(inst)
PyObject *error_type, *error_value, *error_traceback;
PyObject *del;
static PyObject *delstr;
#ifdef Py_TRACE_REFS
extern long _Py_RefTotal;
#endif
PyObject_GC_Fini(inst);
/* Call the __del__ method if it exists. First temporarily
revive the object and save the current exception, if any. */