[Zodb-checkins] CVS: StandaloneZODB/bsddb3Storage/bsddb3Storage - _helper.c:1.1.2.2
Barry Warsaw
barry@wooz.org
Mon, 24 Jun 2002 11:34:35 -0400
Update of /cvs-repository/StandaloneZODB/bsddb3Storage/bsddb3Storage
In directory cvs.zope.org:/tmp/cvs-serv5516
Modified Files:
Tag: bsddb3Storage-picklelog-branch
_helper.c
Log Message:
#error out early if we're using a Python version which is too old.
=== StandaloneZODB/bsddb3Storage/bsddb3Storage/_helper.c 1.1.2.1 => 1.1.2.2 ===
+/* This helper only works for Python 2.2. If using an older version, crap
+ * out now so we don't leave a broken, but compiled and importable module
+ * laying about.
+ */
+#if PY_VERSION_HEX < 0x020200F0
+#error "Must be using at least Python 2.2"
+#endif
+
static PyObject*
helper_incr(PyObject* self, PyObject* args)
{