From: Nick Bowler Date: Sun, 3 Dec 2023 20:14:38 +0000 (-0500) Subject: Fix parser build on compilers without _Bool. X-Git-Tag: v1.3~73 X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/4d7a5093e6cf56da24af4c862cf5a96fd1bf3ad6 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. --- 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;