From 3a3e1cb769836735ddc7db628fc377c3f141057d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 1 Sep 2010 20:37:27 -0400 Subject: [PATCH] This should have gone with the last commit. --- src/ick_bool.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/ick_bool.h diff --git a/src/ick_bool.h b/src/ick_bool.h new file mode 100644 index 0000000..20f4fbb --- /dev/null +++ b/src/ick_bool.h @@ -0,0 +1,19 @@ +/* + * Hide difference between compilers with the C99 bool type and those without. + * The main reason this is desirable is so splint can do more rigorous checking + * on bools. + */ + +/*@-redef@ -incondefs*/ +#ifdef __STDC_VERSION__ +#if __STDC_VERSION__ >= 199901L +#include +#endif +#endif +#ifndef __bool_true_false_are_defined +typedef int bool; +#define true 1 +#define false 0 +#define __bool_true_false_are_defined 1 +#endif +/*@=redef =incondefs@*/ -- 2.43.0