Skip to content

fix build error with GCC 15 (C23)

When following the build guide in Android-Translation-Layer with GCC 15, I was getting a build error:

In file included from ../libopensles/sllog.c:17:
../libopensles/sles_allinclusive.h:38:13: error: ‘bool’ cannot be defined via ‘typedef’
   38 | typedef int bool;

GCC 15 changed to C23 by default from C17 and C23 added bool as a keyword.

Originally I added a -std=gnu17 parameter to the meson.build c_args to get it to build but this MR should be a better approach.

Merge request reports

Loading