diff options
Diffstat (limited to 'portable/stdbool.h')
-rw-r--r-- | portable/stdbool.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/portable/stdbool.h b/portable/stdbool.h index 3efe4c9..749052a 100644 --- a/portable/stdbool.h +++ b/portable/stdbool.h @@ -28,28 +28,28 @@ * stripped-down version of config.h with a different name. */ #ifndef CONFIG_H_INCLUDED -# include <config.h> +# include <config.h> #endif #if HAVE_STDBOOL_H -# include <stdbool.h> +# include <stdbool.h> #else -# if HAVE__BOOL -# define bool _Bool -# else -# ifdef __cplusplus +# if HAVE__BOOL +# define bool _Bool +# else +# ifdef __cplusplus typedef bool _Bool; -# elif _WIN32 -# include <windef.h> -# define bool BOOL -# else +# elif _WIN32 +# include <windef.h> +# define bool BOOL +# else typedef unsigned char _Bool; -# define bool _Bool -# endif -# endif -# define false 0 -# define true 1 -# define __bool_true_false_are_defined 1 +# define bool _Bool +# endif +# endif +# define false 0 +# define true 1 +# define __bool_true_false_are_defined 1 #endif /* @@ -57,7 +57,7 @@ typedef unsigned char _Bool; * fail. Only of interest for programs that also include Perl headers. */ #ifndef HAS_BOOL -# define HAS_BOOL 1 +# define HAS_BOOL 1 #endif #endif /* !PORTABLE_STDBOOL_H */ |