Re: Illegal declaration - but why?
Re: Illegal declaration - but why?
- Subject: Re: Illegal declaration - but why?
- From: Steve Checkoway <email@hidden>
- Date: Wed, 3 Jan 2007 22:14:17 -0800
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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