From c24fe36c57a2c5603ee351cbfcf3338766a964cb Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Wed, 30 Apr 2003 13:09:08 +0000 Subject: Allow _sre.c to compile with Python 2.2 --- Modules/_sre.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v0.12