]> granicus.if.org Git - python/commitdiff
Allow _sre.c to compile with Python 2.2
authorAndrew M. Kuchling <amk@amk.ca>
Wed, 30 Apr 2003 13:09:08 +0000 (13:09 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Wed, 30 Apr 2003 13:09:08 +0000 (13:09 +0000)
Modules/_sre.c

index b50eae330bbcd397c4e830c9dbdce843222ba686..8203ac89e5923c2650cf659c5e39e88a020767c7 100644 (file)
@@ -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;