From 9108f520d2913f158faa31be09a0aa34da10142e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Jul 2026 17:48:05 +1000 Subject: [PATCH] wildtest: use stdbool.h so bool works from C99 through C23 The Cygwin CI runner's autoconf selects gcc -std=gnu23, where bool is a keyword, so 'typedef char bool' fails with 'two or more data types in declaration specifiers'. Guarding the typedef on __STDC_VERSION__ is unreliable across the C2x transition (that compiler reports a pre-release value below 202311L), so drop the typedef and include stdbool.h, which works from C99 through C23. --- wildtest.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wildtest.c b/wildtest.c index ace0c381..77447924 100644 --- a/wildtest.c +++ b/wildtest.c @@ -32,9 +32,7 @@ int fnmatch_errors = 0; int wildmatch_errors = 0; -#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L -typedef char bool; -#endif +#include int output_iterations = 0; int explode_mod = 0;