This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unable to use bool type in i386.h


On Fri, Nov 22, 2013 at 10:02 PM, JÄdrzej Dudkiewicz
<jedrzej.dudkiewicz@gmail.com> wrote:
> On Fri, Nov 22, 2013 at 2:59 PM, Terry Guo <flameroc@gmail.com> wrote:
>> On Fri, Nov 22, 2013 at 8:53 PM, Rob <robpilling@gmail.com> wrote:
>>> It seems that C files include this, so you'll want _Bool, or just use an int.
>>>
>>
>> Thanks for your reply. I know I can use the int. But the bool type is
>> more precise. And now GCC is in C++, the bool type should be
>> supported. I am curious whether this is a missing part of GCC. Can
>> someone please help to confirm?
>
> I'm not an expert, but it seems that you are compiling *.c files. GCC
> being written in C++ does not change C language in any way, so bool
> won't work.
> --
> JÄdrzej Dudkiewicz
>

But if you search i386.c, you will find many bool type variables. Why
it works for i386.c but not for i386.h?

BR,
Terry


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]