doc: Update for Solaris 11.4.
[gnulib.git] / doc / posix-headers / stddef.texi
blob7fa8cda4c198b19c759faafcb612ba3fc52157fa
1 @node stddef.h
2 @section @file{stddef.h}
4 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html}
6 Gnulib module: stddef
8 Portability problems fixed by Gnulib:
9 @itemize
10 @item
11 Some platforms fail to provide @code{max_align_t}, which was added in C11:
12 Solaris 11.0 and others.
14 @item
15 @code{max_align_t} does not have the expected alignment on some platforms:
16 NetBSD 8.0/x86.
18 @item
19 Some old platforms fail to provide @code{wchar_t}.
21 @item
22 Some platforms provide a @code{NULL} macro that cannot be used in arbitrary
23 expressions:
24 NetBSD 5.0
25 @end itemize
27 Portability problems not fixed by Gnulib:
28 @itemize
29 @item
30 Some platforms provide an @code{offsetof} macro that cannot be used in
31 arbitrary expressions:
32 Solaris 11.4
33 This problem can be worked around by parenthesizing the
34 @code{offsetof} expression in the unlikely case you use it with
35 @code{sizeof} or @samp{[]}.
36 @end itemize