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