add dummy definition that works in Linux and add information in
INSTALL.texi on the specific Python requirements for Cygwin/Mingw.
2005-11-17 Mats Bengtsson <mabe@drongo.s3.kth.se>
+ * python/midi.c: PyMIDINIT_FUNC isn't defined in Python < 2.3
+ add dummy definition that works in Linux and add information in
+ INSTALL.texi on the specific Python requirements for Cygwin/Mingw.
+
* Documentation/user/changing-defaults.itely (Modifying context
plug-ins): Add index for \with.
@uref{http://gcc.gnu.org/, The GNU c++ compiler} (version 3.3 or
newer). EGCS and 2.x are known to cause crashes.
-@item @uref{http://www.python.org,Python} (version 2.1 or newer).
+@item @uref{http://www.python.org,Python} (version 2.1 or newer except
+for Cygwin/Mingw where version 2.3 or newer is needed).
@item @uref{ftp://ftp.gnu.org/gnu/make/,GNU Make} (version 3.78 or newer).
#include <Python.h>
+/* PyMIDINIT_FUNC isn't defined in Python < 2.3 */
+#ifndef PyMODINIT_FUNC
+# if defined(__cplusplus)
+# define PyMODINIT_FUNC extern "C" void
+# else /* __cplusplus */
+# define PyMODINIT_FUNC void
+# endif /* __cplusplus */
+#endif
+
#if 0
int x = 0;
int *track = &x;