2 * Portability wrapper around <stdbool.h>.
4 * Provides the bool and _Bool types and the true and false constants,
5 * following the C99 specification, on hosts that don't have stdbool.h. This
6 * logic is based heavily on the example in the Autoconf manual.
8 * Written by Russ Allbery <rra@stanford.edu>
9 * This work is hereby placed in the public domain by its author.
12 #ifndef PORTABLE_STDBOOL_H
13 #define PORTABLE_STDBOOL_H 1
27 typedef unsigned char _Bool;
33 # define __bool_true_false_are_defined 1
37 * If we define bool and don't tell Perl, it will try to define its own and
38 * fail. Only of interest for programs that also include Perl headers.
44 #endif /* !PORTABLE_STDBOOL_H */