summaryrefslogtreecommitdiff
path: root/Modules/_sre.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-04-30 13:09:08 +0000
committerAndrew M. Kuchling <amk@amk.ca>2003-04-30 13:09:08 +0000
commitc24fe36c57a2c5603ee351cbfcf3338766a964cb (patch)
tree48701f45ebd160e2b38f085a09a89a8456bc13c9 /Modules/_sre.c
parent1bc2fdd785d481d8b1d63b761a115e88f1481be9 (diff)
downloadcpython-git-c24fe36c57a2c5603ee351cbfcf3338766a964cb.tar.gz
Allow _sre.c to compile with Python 2.2
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r--Modules/_sre.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index b50eae330b..8203ac89e5 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;