Next: stdckdint.h, Previous: stdbit.h, Up: ISO C and POSIX Header File Substitutes [Contents][Index]
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdbool.h.html
Gnulib module: stdbool-c99
The stdbool-c99
module is present only for programs that
formerly used the old stdbool
module for C99 compatibility,
and that for some reason cannot use the current stdbool
module
for C23 compatibility.
Portability problems fixed by Gnulib:
true
incorrectly on some platforms:
OpenBSD 4.7 with gcc 2.95.
Portability problems not fixed by Gnulib:
<stdbool.h>
is included, or if
the program is intended to be compiled by a C++ compiler.
(With the advent of C23, ‘_Bool’ is obsolescent anyway.)
_Bool
is a typedef; it might be a macro.
For example, C23 allows _Bool
to be a macro.