* and avoid such grottiness.
*/
/*@-redef@*/
-#ifdef __STDC_VERSION__
-#if __STDC_VERSION__ >= 199901L
-#include <stdbool.h>
-#endif
-#endif
#ifndef __bool_true_false_are_defined
+# ifdef HAVE_STDBOOL_H
+# include <stdbool.h>
+# else
+# ifndef HAVE__BOOL
+# ifdef HAVE_STDINT_H
+# include <stdint.h>
+typedef int_fast8_t bool;
+# else
typedef int bool;
-#define true 1
-#define false 0
-#define __bool_true_false_are_defined 1
+# endif
+# else
+typedef _Bool bool
+# endif
+# define true 1
+# define false 0
+# define __bool_true_false_are_defined 1
+# endif
#endif
/*@=redef@*/
*/
/*@-redef@ -incondefs*/
-#ifdef HAVE_STDBOOL_H
-# include <stdbool.h>
-#else
-# ifndef HAVE__BOOL
-# ifdef HAVE_STDINT_H
-# include <stdint.h>
+#ifndef __bool_true_false_are_defined
+# ifdef HAVE_STDBOOL_H
+# include <stdbool.h>
+# else
+# ifndef HAVE__BOOL
+# ifdef HAVE_STDINT_H
+# include <stdint.h>
typedef int_fast8_t bool;
-# else
+# else
typedef int bool;
-# endif
-# else
+# endif
+# else
typedef _Bool bool
+# endif
+# define true 1
+# define false 0
+# define __bool_true_false_are_defined 1
# endif
-# define true 1
-# define false 0
-# define __bool_true_false_are_defined 1
#endif
/*@=redef =incondefs@*/
" if(c+c1+c2+c3+c4+c5+c6+c7+c8+c9+r+\n"
" x+x1+x2+x3+x4+x5+x6+x7+x8+x9) raise(SIGSEGV);\n");
printf(" return opted;\n}\n");
- fclose(stdout);
+ /* do not close stdout; freopen implicitly closes it anyway, and explicitly
+ closing it breaks on DOS */
}
int main(void)