test-stddef: test for (some) offsetof bugs
[gnulib.git] / doc / posix-headers / stddef.texi
1 @node stddef.h
2 @section @file{stddef.h}
3
4 POSIX specification:@* @url{http://www.opengroup.org/susv3xbd/stddef.h.html}
5
6 Gnulib module: stddef
7
8 Portability problems fixed by Gnulib:
9 @itemize
10 @item
11 Some old platforms fail to provide @code{wchar_t}.
12
13 @item
14 Some platforms provide a @code{NULL} macro that cannot be used in arbitrary
15 expressions:
16 NetBSD 5.0
17 @end itemize
18
19 Portability problems not fixed by Gnulib:
20 @itemize
21 @item
22 Some platforms provide an @code{offsetof} macro that cannot be used in
23 arbitrary expressions:
24 Solaris 10
25 This problem can be worked around by parenthesizing the
26 @code{offsetof} expression in the unlikely case you use it with
27 @code{sizeof} or @samp{[]}.
28 @end itemize