From: Andrew M. Kuchling Date: Wed, 30 Apr 2003 13:09:08 +0000 (+0000) Subject: Allow _sre.c to compile with Python 2.2 X-Git-Tag: v2.3c1~919 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c24fe36c57a2c5603ee351cbfcf3338766a964cb;p=python Allow _sre.c to compile with Python 2.2 --- diff --git a/Modules/_sre.c b/Modules/_sre.c index b50eae330b..8203ac89e5 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;