summaryrefslogtreecommitdiffstats
path: root/Modules/_sre.c
diff options
context:
space:
mode:
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 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;