]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
include stddef.h
authorGuido van Rossum <guido@python.org>
Thu, 20 Oct 1994 22:03:08 +0000 (22:03 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 20 Oct 1994 22:03:08 +0000 (22:03 +0000)
Include/structmember.h

index 6bd9e720b9cd2c54db165ec1a40c8865a356832d..7a047b9307f454541d08ffcea2b81cdda21f0bdb 100644 (file)
@@ -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.