From: Eric S. Raymond Date: Thu, 2 Sep 2010 00:37:27 +0000 (-0400) Subject: This should have gone with the last commit. X-Git-Tag: 0.29~71 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=3a3e1cb769836735ddc7db628fc377c3f141057d;p=intercal.git This should have gone with the last commit. --- 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@*/