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.
This commit is contained in:
Andrew Tridgell committed 2026-07-19 18:27:21 +10:00
1 parent 4dc8e93c7d
commit 9108f520d2
1 file changed
+1 -3
+1 -3
View File
@@ -32,9 +32,7 @@ int fnmatch_errors = 0;
int wildmatch_errors = 0;
#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L
typedef char bool;
#endif
#include <stdbool.h>
int output_iterations = 0;
int explode_mod = 0;