stdbool.h 449 B

1234567891011121314151617181920
  1. #ifndef stdbool_h
  2. #define stdbool_h
  3. #include <wtypes.h>
  4. /* MSVC doesn't define _Bool or bool in C, but does have BOOL */
  5. /* Note this doesn't pass autoconf's test because (bool) 0.5 != true */
  6. /* Clang-cl uses MSVC headers, so needs msvc_compat, but has _Bool as
  7. * a built-in type. */
  8. #ifndef __clang__
  9. typedef BOOL _Bool;
  10. #endif
  11. #define bool _Bool
  12. #define true 1
  13. #define false 0
  14. #define __bool_true_false_are_defined 1
  15. #endif /* stdbool_h */