diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2003-04-30 13:09:08 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2003-04-30 13:09:08 (GMT) |
commit | c24fe36c57a2c5603ee351cbfcf3338766a964cb (patch) | |
tree | 48701f45ebd160e2b38f085a09a89a8456bc13c9 /Modules/_sre.c | |
parent | 1bc2fdd785d481d8b1d63b761a115e88f1481be9 (diff) | |
download | cpython-c24fe36c57a2c5603ee351cbfcf3338766a964cb.zip cpython-c24fe36c57a2c5603ee351cbfcf3338766a964cb.tar.gz cpython-c24fe36c57a2c5603ee351cbfcf3338766a964cb.tar.bz2 |
Allow _sre.c to compile with Python 2.2
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r-- | Modules/_sre.c | 4 |
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; |