<div dir="ltr">Thanks!  I think I added the comment before committing and after testing with MSVC and a .c file.  :)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 25, 2013 at 6:03 AM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fixed in r193404. Thanks!<br>
<div class="HOEnZb"><div class="h5"><br>
On 25 October 2013 04:43, Alp Toker <<a href="mailto:alp@nuanti.com">alp@nuanti.com</a>> wrote:<br>
> This commit introduced C++ comments into a C header:<br>
><br>
> ./include/llvm-c/lto.h:27:1: error: expected identifier or '(' before '/'<br>
> token<br>
><br>
>  // MSVC in particular does not have anything like _Bool or bool in C, but<br>
> we can<br>
><br>
> Alp.<br>
><br>
><br>
> On 24/10/2013 23:26, Reid Kleckner wrote:<br>
><br>
> +#ifndef __cplusplus<br>
> +#if !defined(_MSC_VER)<br>
> +#include <stdbool.h><br>
> +typedef bool lto_bool_t;<br>
> +#else<br>
> +// MSVC in particular does not have anything like _Bool or bool in C, but<br>
> we can<br>
> +// at least make sure the type is the same size.  The implementation side<br>
> will<br>
> +// use C++ bool.<br>
> +typedef unsigned char lto_bool_t;<br>
> +#endif<br>
> +#else<br>
> +typedef bool lto_bool_t;<br>
> +#endif<br>
> +<br>
><br>
><br>
> --<br>
> <a href="http://www.nuanti.com" target="_blank">http://www.nuanti.com</a><br>
> the browser experts<br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
><br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div>