4285 |
@acindex HEADER_STDBOOL |
@acindex HEADER_STDBOOL |
4286 |
@cvindex HAVE_STDBOOL_H |
@cvindex HAVE_STDBOOL_H |
4287 |
If @file{stdbool.h} exists and is conformant to C99, define |
If @file{stdbool.h} exists and is conformant to C99, define |
4288 |
@code{HAVE_STDBOOL_H} to 1. Your @file{system.h} should contain the |
@code{HAVE_STDBOOL_H} to 1. To fulfill the C99 requirements, your |
4289 |
following code: |
@file{system.h} should contain the following code: |
4290 |
|
|
4291 |
@verbatim |
@verbatim |
4292 |
#if HAVE_STDBOOL_H |
#if HAVE_STDBOOL_H |
4293 |
# include <stdbool.h> |
# include <stdbool.h> |
4294 |
#else |
#else |
4295 |
typedef enum {false = 0, true = 1} bool; |
# if ! HAVE__BOOL |
4296 |
|
# ifdef __cplusplus |
4297 |
|
typedef bool _Bool; |
4298 |
|
# else |
4299 |
|
typedef unsigned char _Bool; |
4300 |
|
# endif |
4301 |
|
# endif |
4302 |
|
# define bool _Bool |
4303 |
|
# define false 0 |
4304 |
|
# define true 1 |
4305 |
|
# define __bool_true_false_are_defined 1 |
4306 |
#endif |
#endif |
4307 |
@end verbatim |
@end verbatim |
4308 |
@end defmac |
@end defmac |