mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-06 00:51:27 -04:00
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:
1 parent
4dc8e93c7d
commit
9108f520d2
1 file changed
+1
-3
+1
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user