bpo-40268: Remove unused structmember.h includes (GH-19530)
If only offsetof() is needed: include stddef.h instead. When structmember.h is used, add a comment explaining that PyMemberDef is used.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// namespace object implementation
|
||||
|
||||
#include "Python.h"
|
||||
#include "structmember.h"
|
||||
#include "structmember.h" // PyMemberDef
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user