aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Modules/_zoneinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_zoneinfo.c')
-rw-r--r--Modules/_zoneinfo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_zoneinfo.c b/Modules/_zoneinfo.c
index 0ced9d08b9e..fb0b4b40b2a 100644
--- a/Modules/_zoneinfo.c
+++ b/Modules/_zoneinfo.c
@@ -4,7 +4,7 @@
#include "Python.h"
#include "pycore_long.h" // _PyLong_GetOne()
-#include "structmember.h"
+
#include <ctype.h>
#include <stddef.h>
@@ -2692,13 +2692,13 @@ static PyMethodDef zoneinfo_methods[] = {
static PyMemberDef zoneinfo_members[] = {
{.name = "key",
.offset = offsetof(PyZoneInfo_ZoneInfo, key),
- .type = T_OBJECT_EX,
- .flags = READONLY,
+ .type = Py_T_OBJECT_EX,
+ .flags = Py_READONLY,
.doc = NULL},
{.name = "__weaklistoffset__",
.offset = offsetof(PyZoneInfo_ZoneInfo, weakreflist),
- .type = T_PYSSIZET,
- .flags = READONLY},
+ .type = Py_T_PYSSIZET,
+ .flags = Py_READONLY},
{NULL}, /* Sentinel */
};