2
0

bool.h 435 B

123456789101112131415161718
  1. /* This takes the place of C99 stdbool.h, which at least some Windows
  2. compilers don't have. (October 2005).
  3. One must not also include <stdbool.h>, because it might cause a name
  4. collision.
  5. */
  6. #ifndef __cplusplus
  7. /* At least the GNU compiler defines __bool_true_false_are_defined */
  8. #ifndef __bool_true_false_are_defined
  9. #define __bool_true_false_are_defined
  10. typedef enum {
  11. false = 0,
  12. true = 1
  13. } bool;
  14. #endif
  15. #endif