Allow _sre.c to compile with Python 2.2

This commit is contained in:
Andrew M. Kuchling 2003-04-30 13:09:08 +00:00
parent 1bc2fdd785
commit c24fe36c57
1 changed files with 4 additions and 0 deletions

View File

@ -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;