summaryrefslogtreecommitdiff
path: root/include/stddef.h
AgeCommit message (Collapse)Author
2006-08-21Use __GNUC_PREREQ__() for the GCC 4 test, too.thorpej
2006-08-21__offsetof__ is a builtin, so we need __GNU_PREREQchristos
2006-08-21gcc-3.3 does not have __offsetof__, but gcc-3.4 eems to require it:christos
From the redhat web page: http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gcc/offsetof.html __offsetof__ (expression) is equivalent to the parenthesized expression, except that the expression is considered an integral constant expression even if it contains certain operators that are not normally permitted in an integral constant expression. Users should never use __offsetof__ directly; the only valid use of __offsetof__ is to implement the offsetof macro in <stddef.h>.
2006-08-21g++-4 does not like &0->member, so we have to use the built-in offsetof().christos
g++-3 does not have a built-in offsetof(), but we cannot use the c version, otherwise we break with -Wold-style-cast. Inspired by the DF version, but a bit different.
2006-08-21Use gcc's builtin function. This permits c++ compiliation of constskd
expressions using offsetof. Boost-python relies on this, for example.
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22270, verified by myself.
2000-11-10u_long -> unsigned long in "offsetof" macro.tshiozak
Using u_long causes <stddef.h> to undesirably depend on <sys/types.h> . BTW: Why is the cast needed?
2000-07-06de-lintchristos
2000-01-10Move <null.h> to <sys/null.h> for the purpose of avoiding conflicts due tokleink
std C headers including it, and a kernel module written in C++ would benfit as well.
1999-12-22For the benefit of G++'s null pointer constant implementation, #define NULLkleink
as __null with egcs 1.0 (GCC 2.90) and above. As several headers are affected by this change, move the definition into a new header file, <null.h>, to ease maintenance.
1998-02-02merge lite-2 sccs id, but as per jt, don't switch to using lite-2 rune_t'sperry
1994-10-26new RCS ID format.cgd
1994-05-21add _BSD's to ansi typescgd
1993-08-01Add RCS identifiers.mycroft
1993-03-21initial import of 386bsd-0.1 sourcescgd