damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

pstdbool.h (733B)


      1 #ifndef PSTDBOOL_H
      2 #define PSTDBOOL_H
      3 
      4 #if !defined(__cplusplus) && !__bool_true_false_are_defined && !defined(bool) && !defined(__STDBOOL_H)
      5 
      6 #ifdef HAVE_STDBOOL_H
      7 
      8 #include <stdbool.h>
      9 
     10 #elif (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
     11 /* C99 or newer */
     12 
     13 #define bool _Bool
     14 #define true 1
     15 #define false 0
     16 #define __bool_true_false_are_defined 1
     17 
     18 #elif defined(__GNUC__) && !defined(__STRICT_ANSI__)
     19 
     20 #define bool bool
     21 #define true true
     22 #define false false
     23 #define __bool_true_false_are_defined 1
     24 
     25 #else
     26 
     27 typedef unsigned char _Portable_bool;
     28 #define bool _Portable_bool
     29 #define true 1
     30 #define false 0
     31 #define __bool_true_false_are_defined 1
     32 
     33 #endif
     34 
     35 #endif
     36 
     37 #endif /* PSTDBOOL_H */