diff options
author | Guido van Rossum <guido@python.org> | 1994-10-20 22:03:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-10-20 22:03:08 (GMT) |
commit | 5ebc0cad5782022d48fe5effc08dc7252316e5da (patch) | |
tree | 469b46da393e2254695719a1d08bcdb60e4dec60 /Include | |
parent | 780044f27a18a7f414f02fe58ead9d25fe4a86c6 (diff) | |
download | cpython-5ebc0cad5782022d48fe5effc08dc7252316e5da.zip cpython-5ebc0cad5782022d48fe5effc08dc7252316e5da.tar.gz cpython-5ebc0cad5782022d48fe5effc08dc7252316e5da.tar.bz2 |
include stddef.h
Diffstat (limited to 'Include')
-rw-r--r-- | Include/structmember.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/structmember.h b/Include/structmember.h index 6bd9e72..7a047b9 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 <stddef.h> /* 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. |