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

Skip to content

Commit 9bd126a

Browse files
committed
the days of pre-standard C compilers are gone
1 parent 4f92a68 commit 9bd126a

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

Include/structmember.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ extern "C" {
99

1010
#include <stddef.h> /* For offsetof */
1111

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-
2212
/* An array of PyMemberDef structures defines the name, type and offset
2313
of selected members of a C structure. These can be read by
2414
PyMember_GetOne() and set by PyMember_SetOne() (except if their READONLY

0 commit comments

Comments
 (0)