[PATCH] Revert "llvm-c/lto.h: Avoid use of bool."

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Oct 24 13:43:06 PDT 2013


On 24 October 2013 16:35, Chandler Carruth <chandlerc at google.com> wrote:
>
> On Thu, Oct 24, 2013 at 1:33 PM, Reid Kleckner <rnk at google.com> wrote:
>>
>> +#   define bool unsigned char
>
>
> In what way is it *ever* safe to #define 'bool' in a C header file.

True. Can we #define a LLVM_LTO_BOOL instead?

> I don't
> get it. Why can't we use C types in the C interface?
>

ABI compatibility. Unfortunately this file was using stdbool.h's bool before.

Cheers,
Rafael



More information about the llvm-commits mailing list