summaryrefslogtreecommitdiffstats
path: root/Include/structmember.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-02-26 20:54:47 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-02-26 20:54:47 (GMT)
commit9bd126a1c41dfcb60c0f7fa7128688f1f5ae142a (patch)
tree9af3f6dc2b6b22da2537447aeaaf9c441b3b1d41 /Include/structmember.h
parent4f92a68a813c8a4090fd175037c494b498e62587 (diff)
downloadcpython-9bd126a1c41dfcb60c0f7fa7128688f1f5ae142a.zip
cpython-9bd126a1c41dfcb60c0f7fa7128688f1f5ae142a.tar.gz
cpython-9bd126a1c41dfcb60c0f7fa7128688f1f5ae142a.tar.bz2
the days of pre-standard C compilers are gone
Diffstat (limited to 'Include/structmember.h')
-rw-r--r--Include/structmember.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/Include/structmember.h b/Include/structmember.h
index 0b85b2a..40c04e9 100644
--- a/Include/structmember.h
+++ b/Include/structmember.h
@@ -9,16 +9,6 @@ extern "C" {
#include <stddef.h> /* For offsetof */
-/* The offsetof() macro calculates the offset of a structure member
- in its structure. Unfortunately this cannot be written down
- portably, hence it is provided by a Standard C header file.
- For pre-Standard C compilers, here is a version that usually works
- (but watch out!): */
-
-#ifndef offsetof
-#define offsetof(type, member) ( (int) & ((type*)0) -> member )
-#endif
-
/* An array of PyMemberDef structures defines the name, type and offset
of selected members of a C structure. These can be read by
PyMember_GetOne() and set by PyMember_SetOne() (except if their READONLY