From: Guido van Rossum Date: Thu, 20 Oct 1994 22:03:08 +0000 (+0000) Subject: include stddef.h X-Git-Tag: v1.1.1~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ebc0cad5782022d48fe5effc08dc7252316e5da;p=thirdparty%2FPython%2Fcpython.git include stddef.h --- diff --git a/Include/structmember.h b/Include/structmember.h index 6bd9e720b9cd..7a047b9307f4 100644 --- a/Include/structmember.h +++ b/Include/structmember.h @@ -30,6 +30,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* Interface to map C struct members to Python object attributes */ +#ifdef HAVE_STDDEF_H +#include /* For offsetof */ +#endif + /* 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.