compiler/types: Add workaround to use builtin_type_macros.h in C
authorCaio Oliveira <caio.oliveira@intel.com>
Sun, 3 Sep 2023 04:19:56 +0000 (21:19 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Sep 2023 05:16:58 +0000 (05:16 +0000)
commit13d3efb2d1c450810df969a6892cd51e160115db
treee50b764d2459f205f0c6879fc54a586f2db24ebc
parenta67d4bde2cca6e68555d0d22e22cb13210440927
compiler/types: Add workaround to use builtin_type_macros.h in C

In most versions of C, bool is defined as _Bool, so the macro for bool
gets generated with the wrong name.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25006>
src/compiler/builtin_type_macros.h