File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 30
30
* 2) bool, true, false
31
31
* 3) standard system types
32
32
* 4) IsValid macros for system types
33
- * 5) offsetof, lengthof, alignment
33
+ * 5) lengthof, alignment
34
34
* 6) assertions
35
35
* 7) widely useful macros
36
36
* 8) random stuff
@@ -703,20 +703,9 @@ typedef NameData *Name;
703
703
704
704
705
705
/* ----------------------------------------------------------------
706
- * Section 5: offsetof, lengthof, alignment
706
+ * Section 5: lengthof, alignment
707
707
* ----------------------------------------------------------------
708
708
*/
709
- /*
710
- * offsetof
711
- * Offset of a structure/union field within that structure/union.
712
- *
713
- * XXX This is supposed to be part of stddef.h, but isn't on
714
- * some systems (like SunOS 4).
715
- */
716
- #ifndef offsetof
717
- #define offsetof (type , field ) ((long) &((type *)0)->field)
718
- #endif /* offsetof */
719
-
720
709
/*
721
710
* lengthof
722
711
* Number of elements in an array.
You can’t perform that action at this time.
0 commit comments