summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-04-30 13:09:08 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2003-04-30 13:09:08 (GMT)
commitc24fe36c57a2c5603ee351cbfcf3338766a964cb (patch)
tree48701f45ebd160e2b38f085a09a89a8456bc13c9 /Modules
parent1bc2fdd785d481d8b1d63b761a115e88f1481be9 (diff)
downloadcpython-c24fe36c57a2c5603ee351cbfcf3338766a964cb.zip
cpython-c24fe36c57a2c5603ee351cbfcf3338766a964cb.tar.gz
cpython-c24fe36c57a2c5603ee351cbfcf3338766a964cb.tar.bz2
Allow _sre.c to compile with Python 2.2
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sre.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index b50eae3..8203ac8 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -3110,7 +3110,11 @@ static PyMethodDef _functions[] = {
{NULL, NULL}
};
+#if PY_VERSION_HEX < 0x02030000
+DL_EXPORT(void) init_sre(void)
+#else
PyMODINIT_FUNC init_sre(void)
+#endif
{
PyObject* m;
PyObject* d;