summaryrefslogtreecommitdiffstats
path: root/Doc/includes/custom3.c
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/includes/custom3.c')
-rw-r--r--Doc/includes/custom3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/includes/custom3.c b/Doc/includes/custom3.c
index 8d88bc2..0faf2bd 100644
--- a/Doc/includes/custom3.c
+++ b/Doc/includes/custom3.c
@@ -1,6 +1,6 @@
#define PY_SSIZE_T_CLEAN
#include <Python.h>
-#include "structmember.h"
+#include <stddef.h> /* for offsetof() */
typedef struct {
PyObject_HEAD
@@ -63,7 +63,7 @@ Custom_init(CustomObject *self, PyObject *args, PyObject *kwds)
}
static PyMemberDef Custom_members[] = {
- {"number", T_INT, offsetof(CustomObject, number), 0,
+ {"number", Py_T_INT, offsetof(CustomObject, number), 0,
"custom number"},
{NULL} /* Sentinel */
};