Commits

Alexey Borzenkov committed a0f4a54

GC works properly only starting with Python 2.6

Comments (0)

Files changed (1)

 static PyObject* PyExc_GreenletError;
 static PyObject* PyExc_GreenletExit;
 
+#if PY_MAJOR_VERSION >= 3 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 6)
 #define GREENLET_USE_GC
-#undef GREENLET_USE_GC_DEBUG
+#endif
 
 #ifdef GREENLET_USE_GC
 #define GREENLET_GC_FLAGS Py_TPFLAGS_HAVE_GC