Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c24fe36

Browse files
committed
Allow _sre.c to compile with Python 2.2
1 parent 1bc2fdd commit c24fe36

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Modules/_sre.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3110,7 +3110,11 @@ static PyMethodDef _functions[] = {
31103110
{NULL, NULL}
31113111
};
31123112

3113+
#if PY_VERSION_HEX < 0x02030000
3114+
DL_EXPORT(void) init_sre(void)
3115+
#else
31133116
PyMODINIT_FUNC init_sre(void)
3117+
#endif
31143118
{
31153119
PyObject* m;
31163120
PyObject* d;

0 commit comments

Comments
 (0)