fix missing stdbool.h include for support for C17 and below v1.6.0

Sun, 05 Jul 2026 12:45:17 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 05 Jul 2026 12:45:17 +0200
changeset 107
caa1b87a4463
parent 106
b58f54f89ac7
child 108
47be4044845b

fix missing stdbool.h include for support for C17 and below

src/bfile_heuristics.h file | annotate | diff | comparison | revisions
--- a/src/bfile_heuristics.h	Sun Jul 05 12:44:44 2026 +0200
+++ b/src/bfile_heuristics.h	Sun Jul 05 12:45:17 2026 +0200
@@ -27,6 +27,10 @@
 #ifndef BFILE_HEURISTICS_H_
 #define BFILE_HEURISTICS_H_
 
+#if __STDC_VERSION__ < 202311L
+#include <stdbool.h>
+#endif
+
 #define BFILE_IGNORE           0x00
 #define BFILE_LOW_ACCURACY     0x01
 #define BFILE_MEDIUM_ACCURACY  0x02

mercurial