[Build Error] 'bool' redefinition issue during compile
Hello. When I was trying to build this project, it throw an error that says:
In file included from ../libopensles/ThreadPool.c:19:
../libopensles/sles_allinclusive.h:38:13: error: ‘bool’ cannot be defined via ‘typedef’
38 | typedef int bool;
| ^~~~
../libopensles/sles_allinclusive.h:38:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
../libopensles/sles_allinclusive.h:38:1: warning: useless type name in empty declaration
38 | typedef int bool;
| ^~~~~~~
ninja: build stopped: subcommand failed.
I heard that bools are built-in on the newer versions of C compilers (and standards). Yea, it's a pretty small issue but I just wanted to report it just in case.
Edited by Mestan