mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Allow _sre.c to compile with Python 2.2
This commit is contained in:
parent
1bc2fdd785
commit
c24fe36c57
1 changed files with 4 additions and 0 deletions
|
|
@ -3110,7 +3110,11 @@ static PyMethodDef _functions[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if PY_VERSION_HEX < 0x02030000
|
||||||
|
DL_EXPORT(void) init_sre(void)
|
||||||
|
#else
|
||||||
PyMODINIT_FUNC init_sre(void)
|
PyMODINIT_FUNC init_sre(void)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
PyObject* m;
|
PyObject* m;
|
||||||
PyObject* d;
|
PyObject* d;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue