From 4d7a5093e6cf56da24af4c862cf5a96fd1bf3ad6 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sun, 3 Dec 2023 15:14:38 -0500 Subject: [PATCH] Fix parser build on compilers without _Bool. Although we have a perfectly fine replacement for compilers that do not implement _Bool, we have to have #include in order to get it, which was missing from the parser header. --- src/parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parse.y b/src/parse.y index 14d593e..c66a803 100644 --- a/src/parse.y +++ b/src/parse.y @@ -120,6 +120,7 @@ static size_t yytnamerr_copy(char *dst, const char *src) %code requires { #include +#include } %code provides { @@ -131,7 +132,7 @@ const char *cdecl__token_name(unsigned token); %union { uintmax_t uintval; unsigned spectype; - _Bool boolval; + bool boolval; struct cdecl_declspec *declspec; struct cdecl_declarator *declarator; struct cdecl *decl; -- 2.43.2