From: Benjamin Peterson Date: Sun, 26 Feb 2012 20:54:47 +0000 (-0500) Subject: the days of pre-standard C compilers are gone X-Git-Tag: v3.3.0a1~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bd126a1c41dfcb60c0f7fa7128688f1f5ae142a;p=thirdparty%2FPython%2Fcpython.git the days of pre-standard C compilers are gone --- diff --git a/Include/structmember.h b/Include/structmember.h index 0b85b2ac94b1..40c04e9aad25 100644 --- a/Include/structmember.h +++ b/Include/structmember.h @@ -9,16 +9,6 @@ extern "C" { #include /* 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