2008-05-23 20:56:24 +00:00
|
|
|
/* This takes the place of C99 stdbool.h, which at least some Windows
|
|
|
|
compilers don't have. (October 2005).
|
2006-12-21 03:57:49 +00:00
|
|
|
|
2008-05-23 20:56:24 +00:00
|
|
|
One must not also include <stdbool.h>, because it might cause a name
|
|
|
|
collision.
|
|
|
|
*/
|
2006-12-21 03:57:49 +00:00
|
|
|
|
|
|
|
#ifndef __cplusplus
|
2008-05-23 20:56:24 +00:00
|
|
|
/* At least the GNU compiler defines __bool_true_false_are_defined */
|
|
|
|
#ifndef __bool_true_false_are_defined
|
|
|
|
#define __bool_true_false_are_defined
|
|
|
|
typedef enum {
|
|
|
|
false = 0,
|
|
|
|
true = 1
|
|
|
|
} bool;
|
2006-12-21 03:57:49 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|