🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5574

Re: __STDC__ and non-conforming ANSI C compilers

#5574
From: Geoff Rimmer
Date: Fri, 13 Jan 1989 03:23
24 lines
1307 bytes
I think I read in the Microsoft 5.1 C compiler manual that __STDC__ is
defined to be 0 in that compiler, since it doesn't fully comply to the ANSI
standard.  If this is so, it makes lines like the following, useless.

#ifdef __STDC__
printf("yabbadabbadoo!!! ansi compat C !!!\n");
#else
printf("uggh! old C\n");
#endif

Anyone know of any other compilers that don't comply with the correct use of
the __STDC__ macro?  (I know someone already mentioned apollo which defines
__STDC__ even though it doesn't support the stringizing operator (##))

If I misread the manual, I apologise to Microsoft!

Geoff
	------------------------------------------------------------
	Geoff Rimmer, Computer Science, Warwick University, England.
			geoff@uk.ac.warwick.emerald

	"So, this is what a restaurant looks like!"
		- Filthy Rich and Catflap, 1986.
	------------------------------------------------------------
Technical Details
Message-ID: <898@ubu.warwick.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!ukc!warwick!geoff

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!ukc!warwick!geoff
From: geoff@warwick.UUCP (Geoff Rimmer)
Newsgroups: comp.std.c
Subject: Re: __STDC__ and non-conforming ANSI C compilers
Message-ID: <898@ubu.warwick.UUCP>
Date: 13 Jan 89 03:23:06 GMT
Sender: news@warwick.UUCP
Reply-To: geoff@emerald.UUCP (Geoff Rimmer)
Organization: Computer Science, Warwick University, UK
Lines: 24