Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b98761c

Browse files
author
Erlend E. Aasland
committed
Fix PyMemberDef in statement.c
- Fix incomplete type (PyMemberDef => struct PyMemberDef) - Include structmember.h bco. PyMemberDef
1 parent 926e238 commit b98761c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/_sqlite/statement.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#include "prepare_protocol.h"
2929
#include "util.h"
3030

31+
#include "structmember.h" // PyMemberDef
32+
3133
/* prototypes */
3234
static int pysqlite_check_remaining_sql(const char* tail);
3335

@@ -461,7 +463,7 @@ static int pysqlite_check_remaining_sql(const char* tail)
461463
return 0;
462464
}
463465

464-
static PyMemberDef stmt_members[] = {
466+
static struct PyMemberDef stmt_members[] = {
465467
{"__weaklistoffset__", T_PYSSIZET, offsetof(pysqlite_Statement, in_weakreflist), READONLY},
466468
{NULL},
467469
};

0 commit comments

Comments
 (0)