Subject: Re: NetBSD master CVS tree commits (fwd)
To: Peter Galbavy <peter@wonderland.org>
From: None <Chris_G_Demetriou@NIAGARA.NECTAR.CS.CMU.EDU>
List: current-users
Date: 02/28/1996 12:56:00
> Now, when I do:
> 
> peter@peter.noc.demon.net $ cpp -dM < /dev/null
> #define __GCC_NEW_VARARGS__ 1
> #define __NetBSD__ 1
> #define sparc 1
> #define __GNUC__ 1
> #define unix 1
> 
> I see no __STDC__ defined. What am I missing here (ie where would __STDC__
> be defined) or are all the source files really being compiled (in userland
> at least) without prototypes for the standard libraries ?

I dunno where __STDC__ is actually defined by the compiler, but it
is...

consider:
cat > foo.c << __EOF__
#ifdef __STDC__
main(){}
#endif
__EOF__
cc -v foo.c

it doesn't say that __STDC__ is defined, but if __STDC__ wasn't it
wouldn't link properly... and it does.


chris