summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-07-07 03:59:34 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-07-07 03:59:34 (GMT)
commit943382c8e5009da895679798e1e740a0661fbf7e (patch)
tree8dba4a12cba89a30c2dad53ba8f11eef6d740321 /Include/Python.h
parent12f4f35f6e675bbe7435069ab7516a48e82f27a9 (diff)
downloadcpython-943382c8e5009da895679798e1e740a0661fbf7e.zip
cpython-943382c8e5009da895679798e1e740a0661fbf7e.tar.gz
cpython-943382c8e5009da895679798e1e740a0661fbf7e.tar.bz2
Removed WITH_CYCLE_GC #ifdef-ery. Holes:
+ I'm not sure what to do about configure.in. Left it alone. + Ditto pyexpat.c. Fred or Martin will know what to do.
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index ff21ad1..d4afdaf 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -23,6 +23,14 @@
#include "patchlevel.h"
#include "pyconfig.h"
+/* Cyclic gc is always enabled, starting with release 2.3a1. Supply the
+ * old symbol for the benefit of extension modules written before then
+ * that may be conditionalizing on it. The core doesn't use it anymore.
+ */
+#ifndef WITH_CYCLE_GC
+#define WITH_CYCLE_GC 1
+#endif
+
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif