Subject: Re: Non-ANSI ism in system headers
To: Neil Booth <neil@daikokuya.co.uk>
From: Bill Studenmund <wrstuden@netbsd.org>
List: current-users
Date: 04/26/2005 12:04:42
--6lCXDTVICvIQMz0h
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 26, 2005 at 10:29:35PM +0900, Neil Booth wrote:
> Bill Studenmund wrote:-
>=20
> > What you might do is try defining STDC. That should turn off all of the=
=20
> > non-gcc (and a lot of non-NetBSD) stuff.
>=20
> I do define __STDC__; like GCC.  My original message pointed out
> that the preprocessed traces were the same; in fact to the offending
> line there is nothing but #include and #ifndef header guards.

Then the problem is that <sys/cdefs.h> isn't getting pulled in. It has a=20
define that, in face of __STDC__, defines __signed as signed.

Sounds like you found a bug in the header includes. :-|

Take care,

Bill

--6lCXDTVICvIQMz0h
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFCbpDJWz+3JHUci9cRAopvAJ9IB5PdYQDH+fqjO7heZOW8MhTfxwCeMzyg
/RP+4yR4u7YsEfViQ7rL+Gs=
=u5DB
-----END PGP SIGNATURE-----

--6lCXDTVICvIQMz0h--