Re: Illegal declaration - but why?
Re: Illegal declaration - but why?
- Subject: Re: Illegal declaration - but why?
- From: Hugh Brown <email@hidden>
- Date: Wed, 3 Jan 2007 22:30:20 -0800
Thanks Steve - that'll make things a little easier
--Hugh
On Jan 3, 2007, at 10:14 PM, Steve Checkoway wrote:
On Jan 3, 2007, at 8:55 PM, Hugh Brown wrote:
Several folks pointed out that bool is not a standard C type, and
that must be the problem. Every compiler I've used since 1995 has
accepted bool, so I just plain forgot it's not strictly part of C.
I'd like to point out that _Bool is the C99 data type and if you
include stdbool.h, then you get definitions for false, true, and bool.
I seem to recall reading somewhere that stdbool.h is not valid in c++
programs but that gcc just adds the obvious #ifndef __cplusplus guard
to the header file as "an extension." My memory has been known to make
mistakes. From time to time.
--
Steve Checkoway
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden