[PATCH 1/2] tools: sepdebugcrcfix: fix build with c23

Mark Wielaard mark@klomp.org
Thu Oct 24 22:59:00 GMT 2024


Hi Sam,

On Sat, Aug 31, 2024 at 12:42:42AM +0100, Sam James wrote:
> Avoid redefining bool:
> ```
>   CC       tools/sepdebugcrcfix-sepdebugcrcfix.o
> tools/sepdebugcrcfix.c:47:13: error: two or more data types in declaration specifiers
>    47 | typedef int bool;
>       |             ^~~~
> tools/sepdebugcrcfix.c:47:1: warning: useless type name in empty declaration
>    47 | typedef int bool;
>       | ^~~~~~~
> tools/sepdebugcrcfix.c:48:19: error: expected identifier or ‘(’ before ‘false’
>    48 | static const bool false = 0, true = 1;
>       |                   ^~~~~
> ```
> 
> While here, include `<stdbool.h>` for older C standards than C23.

OK, that does makes us rely on at least C99, but we already have an
AC_CHECK_HEADERS for stdint, which also requires at least C99.

Pushed,

Mark



More information about the Debugedit mailing list