1 parent 2b5f9f9 commit e1a8ec0Copy full SHA for e1a8ec0
1 file changed
Include/structmember.h
@@ -9,16 +9,6 @@ extern "C" {
9
10
#include <stddef.h> /* For offsetof */
11
12
-/* The offsetof() macro calculates the offset of a structure member
13
- in its structure. Unfortunately this cannot be written down
14
- portably, hence it is provided by a Standard C header file.
15
- For pre-Standard C compilers, here is a version that usually works
16
- (but watch out!): */
17
-
18
-#ifndef offsetof
19
-#define offsetof(type, member) ( (int) & ((type*)0) -> member )
20
-#endif
21
22
/* An array of PyMemberDef structures defines the name, type and offset
23
of selected members of a C structure. These can be read by
24
PyMember_GetOne() and set by PyMember_SetOne() (except if their READONLY
0 commit comments