summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/ext/noddy.c3
-rw-r--r--Doc/ext/noddy2.c5
-rw-r--r--Doc/ext/noddy3.c5
3 files changed, 11 insertions, 2 deletions
diff --git a/Doc/ext/noddy.c b/Doc/ext/noddy.c
index 1988de69..849b3c9 100644
--- a/Doc/ext/noddy.c
+++ b/Doc/ext/noddy.c
@@ -51,6 +51,9 @@ static PyMethodDef noddy_methods[] = {
{NULL} /* Sentinel */
};
+#ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
+#define PyMODINIT_FUNC void
+#endif
PyMODINIT_FUNC
initnoddy(void)
{
diff --git a/Doc/ext/noddy2.c b/Doc/ext/noddy2.c
index 0408cf4..b1e620e 100644
--- a/Doc/ext/noddy2.c
+++ b/Doc/ext/noddy2.c
@@ -13,7 +13,7 @@ Noddy_dealloc(Noddy* self)
{
Py_XDECREF(self->first);
Py_XDECREF(self->last);
- self->ob_type->tp_free(self);
+ self->ob_type->tp_free((PyObject*)self);
}
static PyObject *
@@ -167,6 +167,9 @@ static PyMethodDef module_methods[] = {
{NULL} /* Sentinel */
};
+#ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
+#define PyMODINIT_FUNC void
+#endif
PyMODINIT_FUNC
initnoddy2(void)
{
diff --git a/Doc/ext/noddy3.c b/Doc/ext/noddy3.c
index f286caf..7b044d1 100644
--- a/Doc/ext/noddy3.c
+++ b/Doc/ext/noddy3.c
@@ -13,7 +13,7 @@ Noddy_dealloc(Noddy* self)
{
Py_XDECREF(self->first);
Py_XDECREF(self->last);
- self->ob_type->tp_free(self);
+ self->ob_type->tp_free((PyObject*)self);
}
static PyObject *
@@ -220,6 +220,9 @@ static PyMethodDef module_methods[] = {
{NULL} /* Sentinel */
};
+#ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
+#define PyMODINIT_FUNC void
+#endif
PyMODINIT_FUNC
initnoddy3(void)
{