mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-16 01:22:18 +03:00
* doc/posix-headers/stddef.texi (stddef.h): Document max_align_t. * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]: Do not undef, as that might cause max_align_t to be defined twice. Instead, change use to check for _GL_STDDEF_WINT_T too. (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl. * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS): Check for max_align_t. * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T. * modules/stddef-tests (Depends-on): Add stdalign. * tests/test-stddef.c: Test max_align_t.
32 lines
802 B
Plaintext
32 lines
802 B
Plaintext
@node stddef.h
|
|
@section @file{stddef.h}
|
|
|
|
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html}
|
|
|
|
Gnulib module: stddef
|
|
|
|
Portability problems fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
Some platforms fail to provide @code{max_align_t}, which was added in C11.
|
|
|
|
@item
|
|
Some old platforms fail to provide @code{wchar_t}.
|
|
|
|
@item
|
|
Some platforms provide a @code{NULL} macro that cannot be used in arbitrary
|
|
expressions:
|
|
NetBSD 5.0
|
|
@end itemize
|
|
|
|
Portability problems not fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
Some platforms provide an @code{offsetof} macro that cannot be used in
|
|
arbitrary expressions:
|
|
Solaris 11 2011-11
|
|
This problem can be worked around by parenthesizing the
|
|
@code{offsetof} expression in the unlikely case you use it with
|
|
@code{sizeof} or @samp{[]}.
|
|
@end itemize
|