[llvm] r193377 - lto.h: Use lto_bool_t instead of int to restore the ABI
Alp Toker
alp at nuanti.com
Fri Oct 25 01:43:23 PDT 2013
This commit introduced C++ comments into a C header:
*./include/llvm-c/lto.h:27:1: error: expected identifier or '(' before
'/' token**
*** // MSVC in particular does not have anything like _Bool or bool in
C, but we can
Alp.
On 24/10/2013 23:26, Reid Kleckner wrote:
> +#ifndef __cplusplus
> +#if !defined(_MSC_VER)
> +#include <stdbool.h>
> +typedef bool lto_bool_t;
> +#else
> +// MSVC in particular does not have anything like _Bool or bool in C, but we can
> +// at least make sure the type is the same size. The implementation side will
> +// use C++ bool.
> +typedef unsigned char lto_bool_t;
> +#endif
> +#else
> +typedef bool lto_bool_t;
> +#endif
> +
--
http://www.nuanti.com
the browser experts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131025/ce4aa272/attachment.html>
More information about the llvm-commits
mailing list